-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Project with React Native SVG fails to build on 0.74.0-rc.9 with new architecture #44174
Comments
Hey, @Naturalclar! I downloaded your project and noticed something. View the library's NativeSvgViewModule.ts file Now see the same file in the library repository https://github.com/software-mansion/react-native-svg/blob/main/src/fabric/NativeSvgViewModule.ts I believe the problem has already been resolved, but they have not yet released a version with the correction. If I'm wrong on something please let me know, otherwise it's been a pleasure trying to help. :) |
@Naturalclar can we open an issue on react-native-svg's end to verify if this is the case? |
Sure! That would be great 👍 |
@Naturalclar can you do it? :) |
I think I know what is the problem. Could you try building from |
Closing as this is unrelated to React Native but related to a missing release of react-native-svg. |
And it is available in the newest release: https://github.com/software-mansion/react-native-svg/releases/tag/v15.2.0 🎉 |
Description
A project using react-native 0.74.0-rc.9 fails to build with the latest react-native-svg on new architecture.
At first I thought it was a problem with react-native-svg library, but after further investigation it seems like codegen is generating incorrect typings so it maybe an issue on codegen side.
Method that's causing the build to fail has input of Double, but generated type suggests that it needs to override method with input paramter of Integer
App can be built successfully on the latest 0.73 with new architecture.
Steps to reproduce
gradle.propertires
, setnewArchitectureEnabled=true
yarn android
React Native Version
0.74.0-rc.9
Affected Platforms
Build - MacOS
Areas
Codegen
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Naturalclar/repro-rn74-new-arch-svg-build-fail
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: