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 while updating property "d" of a view managed by RNSVGPath (Invalid number formatting character 'N')

See original GitHub issue

Using a Ring chart and updating the data array with useState. When typing to TextInput it crashes and gives that error. This only happens when updating it with textinput, if I manually type for example 1 to OHP useState it works as intended. Error Error while updating property “d” of a view managed by RNSVGPath (Invalid number formatting character ‘N’)(i=2, s=M NaN NaN A 40 40 0 0 1 NaN NaN L NaN NaN A 40 40 0 0 0 NaN NaN Z)

Versions React-native-svg 12.1.0 React-native ~0.63.3

Any help would be very appreciated

Code ` export default function Progress({ route, navigation }) { const [ohp, setOhp] = useState(0); const [bench, setBench] = useState(0); const [squat, setSquat] = useState(0);

const data = { labels: [“OHP”, “Bench”, “Squat”], data: [ohp, bench, squat] }; <TextInput placeholder=‘Overheadpress’ onChangeText={ohp => setOhp(ohp)} value={ohp}/> `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
MyRealFoodcommented, Nov 19, 2020

Same here!

5reactions
jarederajcommented, Feb 5, 2021

I think you may be triggering this error because your code is attempting to render a path that is outside the bounds of the SVG. An example would be a 30 day graph that has a path attempting to render 31 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while updating property "d" of a view managed by ...
I am getting this error. **Error while updating property 'd' of a view managed by: RNSVGPath. null. Invalid number formatting character 'N' (i=1 ......
Read more >
php - How to resolve Error while updating property 'd' of a view ...
I resolved my problem !!!! for those having same problem ,I will ... completely so it gets null and this an Invalid format...
Read more >
Error while updating property 'd' of a view managed by
I have an SvgUri component in my code. The component causes a crash when the URI points to the following SVG file:
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 >
[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