Error updating property 'strokeWidth' in RNSVGPath
See original GitHub issueJust updated RN to 0.50.4
and react-native-svg
to 6.0.1-rc.0
and getting the following error
Error while updating property 'strokeWidth' in shadow node of type: RNSVGPath
TypeError: expected dynamic type 'double', but had type 'string'
the error comes from
StaticTransformConfig transformConfig = new StaticTransformConfig();
transformConfig.mProperty = property;
transformConfig.mValue = transformConfigMap.getDouble("value");
Any ideas, what causing it? The most I’ve used strokeWidth
is in the following form strokeWidth="2"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:29
Top Results From Across the Web
Error updating property 'strokeWidth' in RNSVGPath · Issue #531
Just updated RN to 0.50.4 and react-native-svg to 6.0.1-rc.0 and getting the following error Error while updating property 'strokeWidth' in ...
Read more >EXPO react-native-svg Error:- "Error while updating property 'd ...
This error is being thrown in my Android app only - the iOS app seems to be fine? The error message gives me...
Read more >react-native-svg - npm
Supports most SVG elements and properties (Rect, Circle, Line, Polyline, Polygon, G ...). Easy to convert SVG code to react-native-svg.
Read more >Error while updating property 'fill' of a view managed by
Error while updating property 'fill' of a view managed by: RNSVGPath ... I'm having this issue, saw that the exact same issue was...
Read more >[Solved]-Error while updating property 'd' of a view managed by
Coding example for the question Error while updating property 'd' of a view managed by: RNSVGPath-React Native.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue on Android only (iOS works fine) running react-native
0.50.4
and react-native-svg6.0.1-rc1
with the following SVG:Reverting back to react-native-svg
5.5.1
resolves the issue as well.I don’t know how but after adding and linking an unrelated project, this started working for me on iOS. React-native development very often feels like trying to juggle sand.