-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript warning: missing types #226
Comments
I'm getting an error |
You could try importing it like this: import { Bar as ProgressBar } from 'react-native-progress';
const MyComponent = () => (
<ProgressBar progress={0.5} /> // <--- Should auto complete props
); You should have no problems with tree shaking configured in your project. |
This still requires react-native-svg to be installed. They way I solved it:
|
@soliloquyx 's solution worked fine for me in the beginning, but when revisiting the project I find myself fiddling with this error again. I will just start messing around with things and after a while it will suddenly start working again (??). This happens often. Things I do:
My setup:
My issue sounds a lot like #26, but his fix did not work for me. Any suggestions? |
so can we use it using typescript or not |
Hi,
I'm getting a message for types missing.
I couldn't install the @types package, so I guess there isn't one.
Alternatively, it asks to add a new declaration. Can anyone help me with that? I have no idea how to do it. Thanks
The text was updated successfully, but these errors were encountered: