bartgryszko/react-native-circular-slider

Tried to register two views with the same name RNSVGPath

obetomuniz opened this issue · 3 comments

As you can see in the screenshot, I get the issue when I tried use 2 libraries that use react-native-svg as dependency. I'm using RN 0.52

simulator screen shot - iphone 6 - 2018-01-30 at 12 11 31

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.

image

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/