When the new RN architecture is enabled, the svg build failed.
Description
When the new RN architecture is enabled, the svg compilation fails. (demo depend on react-native-svg、react-native-linear-gradient)
Steps to reproduce
Error Log:
No viable conversion from 'ShadowNode' to 'const ShadowNode::Unshared' (aka 'const shared ptr<ShadowNode>')
No viable conversion from 'const ShadowNodeFragment' to 'const Props::Shared' (aka 'const shared_ptr<const Props>')
Snack or a link to a repository
https://github.com/suilyy/rnt/blob/sig/24P32/rn-tester/examples/react-native-gifted-charts/tester/BarChartPropsAnimated.jsx
SVG version
15.0.0
React Native version
0.72.5
Platforms
iOS, Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
+1 react native version : 0.74.7
Hi @Zhoukc-42,
Version 15.0.0 is no longer supported. Updating react-native-svg should resolve the issue