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.

Tried to register two views with the same name RNSVGPath

See original GitHub issue

I receive this issue upon importing this in to my project.

    "react-native": "0.55.4",
    "react-native-svg": "^6.4.1",
    "react-native-svg-animations": "^0.1.6",

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
LucasBassetticommented, Nov 24, 2018

Hey @73R3WY,

I believe a simple solution can be change the dependencies field to peerDependencies in the package.json file. Some like:

"peerDependencies": {
    "react-native-svg": ">= 5.5.1",
    "svg-path-properties": ">= 0.4.1"
}

I published a fork as react-native-animations-svg with this change to test with react-native-svg version 8.0.8 and works fine

2reactions
73R3WYcommented, Feb 12, 2019

Hello @abduraufsherkulov , yes Expo already has react-native-svg included, but it uses different version than the one in the library, I will look into it and update the dependencies so that it will require the latest versions of packages and also I am translating the JS code to TS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tried to register two views with the same name RNSVGPath
As you can see in the screenshot, I get the issue when I tried use 2 libraries that use react-native-svg as dependency.
Read more >
(react-native-svg Error) "Tried to register two views with the ...
I get an error message: "Tried to register two views with the same name RNSVGRect" when all I do is try to import...
Read more >
Tried to register two views with the same name ...
Hello, why I get this error message? Tried to register two views with the same name RNSVGSvgVie I want to use svg, and...
Read more >
[Solved]-(react-native-svg Error) "Tried to register two views ...
Coding example for the question (react-native-svg Error) "Tried to register two views with the same name RNSVGRect"-Reactjs.
Read more >
React-native-aegis
Tried to register two views with the same name RNSVGSvgView. Check the react-native-svg version by using npm list react-native react-native-svg .
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