react-native-svg: Error while updating property 'fill' of a view managed by: RNSVGPath
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 23 (1 by maintainers)
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-svg2 - rerun the appInstalling react-native-svg@9.13.6, this particular version worked for me.
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-svgfrom thejitsiimplementation. in theapp/build.gradlefile.if this gives some clue to the problem.
After rerunning the app it showed a warning that my react-native-svg version is incompatible with the installed expo version and after installing the expected version it was fixed.
This is still a persisting issue and have not found a solution. Any advice would be appreciated.