react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

When the new RN architecture is enabled, the svg build failed.

Open Zhoukc-42 opened this issue 9 months ago • 3 comments

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

Zhoukc-42 avatar Mar 04 '25 01:03 Zhoukc-42

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?

github-actions[bot] avatar Mar 04 '25 01:03 github-actions[bot]

+1 react native version : 0.74.7

Jin-seop avatar Apr 11 '25 05:04 Jin-seop

Hi @Zhoukc-42, Version 15.0.0 is no longer supported. Updating react-native-svg should resolve the issue

jakex7 avatar Apr 11 '25 07:04 jakex7