Tried to register two views with the same name RNSVGPath
obetomuniz opened this issue · 3 comments
obetomuniz commented
fitzmode commented
Run npm list react-native react-native-svg
. It's likely that you have two separate packages that declare different versions of react-native-svg
. I had @6.5.2
from another circular slider component I was trying out but forgot to remove when it didn't work the way I expected, and @6.2.2
from this package.
You can remove the other package and it should work. Cheers.
ghasemikasra39 commented
same issue as @fitzmode . But I don't want to remove the other package (for me is react-native-svg-charts@5.2.0). Any idea ?
dmdmd commented
You can specify the dependencies' package version by adding a resolutions
field.
(package.json)
{
...
"resolutions": {
"react-native-circular-slider/react-native-svg": "8.0.10"
}
}
Taken from here https://yarnpkg.com/lang/en/docs/selective-version-resolutions/