question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error updating property 'strokeWidth' in RNSVGPath

See original GitHub issue

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 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:29

github_iconTop GitHub Comments

7reactions
HPieterscommented, Dec 11, 2017

I have the same issue on Android only (iOS works fine) running react-native 0.50.4 and react-native-svg 6.0.1-rc1 with the following SVG:

<Svg height="35" width="35" viewBox="0 0 35 35">
<Path d="M25.30997,2.83092083 C22.9168541,1.47949378 20.1526344,0.708290378 17.2082904,0.708290378 C8.095592,0.708290378 0.708290378,8.095592 0.708290378,17.2082904 C0.708290378,26.3209888 8.095592,33.7082904 17.2082904,33.7082904 C26.3209888,33.7082904 33.7082904,26.3209888 33.7082904,17.2082904 C33.7082904,15.4394827 33.4299648,13.7356815 32.9147197,12.1382926" stroke="black" strokeWidth="2" fill="none" fillRule="evenodd" strokeLinecap="round"></Path>
</Svg>

Reverting back to react-native-svg 5.5.1 resolves the issue as well.

4reactions
jwrubelcommented, Jan 4, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found