Version 7.0.X seems to be broken on Android
See original GitHub issueIt seems that version 7.0.x is broken on android, since it keeps throwing “<Element> should be descendant of a SvgViewShadow”, as also pointed out by here, is it a known issue?
logcat outputs:
E unknown:ReactNative: RNSVG: com.horcrux.svg.ClipPathShadowNode should be descendant of a SvgViewShadow.
E unknown:ReactNative: RNSVG: com.horcrux.svg.ClipPathShadowNode should be descendant of a SvgViewShadow.
E unknown:ReactNative: RNSVG: com.horcrux.svg.DefsShadowNode should be descendant of a SvgViewShadow.
E unknown:ReactNative: RNSVG: com.horcrux.svg.DefsShadowNode should be descendant of a SvgViewShadow.
E unknown:ReactNative: RNSVG: com.horcrux.svg.PathShadowNode should be descendant of a SvgViewShadow.
E unknown:ReactNative: RNSVG: com.horcrux.svg.PathShadowNode should be descendant of a SvgViewShadow.
E unknown:ReactNative: RNSVG: com.horcrux.svg.GroupShadowNode should be descendant of a SvgViewShadow.
Android version: 8.0.0 React Native version: 0.57.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:25 (9 by maintainers)
Top GitHub Comments
@kristerkari I changed the null handling logic, so the common initial case doesn’t cause any warnings: https://github.com/react-native-community/react-native-svg/commit/a2550c35df7cdf972ba707687480c7b4573c9b32
Closing this as it’s fixed in the latest versions.