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 'fill' of a view managed by: RNSVGPath

See original GitHub issue

I’m having this issue, saw that the exact same issue was solved time ago, but the solution is not working for me.

Bug

After installing react-native-svg using “expo install react-native-svg”, I try to add the following Svg:

<Svg width={18} height={20} viewBox="0 0 18 20" >
      <G
        transform="translate(1 1)"
        stroke="#000"
        strokeWidth={2}
        fill="none"
        fillRule="evenodd"
        strokeLinecap="round"
        strokeLinejoin="round"
      >
        <Path d="M16 18v-2a4 4 0 00-4-4H4a4 4 0 00-4 4v2" />
        <Circle cx={8} cy={4} r={4} />
      </G>
</Svg>

and this error shows up:

Error while updating property 'fill' of a view managed by: RNSVGPath

null

java.lang.Double cannot be cast to java.lang.String

Tried uninstalling and installing several versions. Same thing with all of them. Current one: 9.13.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

36reactions
RamboGjcommented, Sep 17, 2022

Hey guys! I was having the same issue here. Try installing react-native-svg packages again, it worked for me 1 - stop expo app expo install react-native-svg 2 - rerun the app

5reactions
shay-tecommented, Feb 25, 2021

experiencing the same issue. while installing (https://github.com/skrafft/react-native-jitsi-meet#android-install)[https://github.com/skrafft/react-native-jitsi-meet#android-install]

to solve this had to exclude this react-native-svg from the jitsi implementation. in the app/build.gradle file.

    implementation(project(':react-native-jitsi-meet')) {
        exclude group: 'com.facebook.react',module:'react-native-svg'
    }

if this gives some clue to the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while updating property 'fill' of a view managed ... - GitHub
Error while updating property 'fill' of a view managed by: RNSVGPath null java.lang.Double cannot be cast to java.lang.String.
Read more >
Error while updating property 'fill' of a view managed by
I install the required package react-native-svg but the problem persist. I'm using the latest version of all packages. This is the full code:...
Read more >
Error while updating property 'fill' of a view managed by
I'm having this issue, saw that the exact same issue was solved time ago, but the solution is not working for me.
Read more >
[Solved]-react-native-chart-kit error while updating property "d ...
Coding example for the question react-native-chart-kit error while updating property "d" of a view managed by RNSVGPath:-React Native.
Read more >
react-native-svg - npm
Troubleshooting. Problems with Proguard. When Proguard is enabled (which it is by default for Android release builds), it causes runtime error.
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