Tried to register two views with the same name RNSVGPath
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @73R3WY,
I believe a simple solution can be change the
dependencies
field topeerDependencies
in the package.json file. Some like:I published a fork as
react-native-animations-svg
with this change to test with react-native-svg version8.0.8
and works fineHello @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.