Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to register two views with the same name RNSVGPath #26

Open
obetomuniz opened this issue Jan 30, 2018 · 3 comments
Open

Tried to register two views with the same name RNSVGPath #26

obetomuniz opened this issue Jan 30, 2018 · 3 comments

Comments

@obetomuniz
Copy link

obetomuniz commented Jan 30, 2018

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

@fitzmode
Copy link

fitzmode commented Sep 7, 2018

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

@ghasemikasra39
Copy link

same issue as @fitzmode . But I don't want to remove the other package (for me is [email protected]). Any idea ?

@dmdmd
Copy link

dmdmd commented Jul 27, 2019

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants