-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
React-Native with TypeScript breaks on typecheck #465
Comments
Hey @Ztarbox 👋, |
Hello @Ztarbox, it is a bug, do you want to contribute with a PR on it? |
I'll try |
@Ztarbox thank you for the workaround with the custom template, works very well! 😃 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still an issue and I don't believe it's stale. |
PR is waiting... |
🐛 Bug Report
If I use the flags
--typescript
together with--native
the generated code contains type check errors.The
props
argument is annotated as "React.SVGProps" this is ok for react, but not 'react-native-svg' which uses the prop type 'SvgProps'To Reproduce
transform using
run
tsc
on the fileExpected behavior
On the options "typescript" and "native", the "props" should be of type "SvgProps" from 'react-native-svg'
I was able to "workaround" this by using a costum template:
The text was updated successfully, but these errors were encountered: