Tried to register two views with the same name RNSScreen
See original GitHub issueGetting the following issue when I add import { useScreens } from 'react-native-screens';
in my App.js
react-native info
Environment: OS: macOS High Sierra 10.13.5 Node: 10.10.0 Yarn: 1.9.4 npm: 6.4.1 Watchman: 4.9.0 Xcode: Xcode 9.4.1 Build version 9F2000 Android Studio: Not Found
Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4
Etc
“expo”: “^30.0.0”, “react-native-screens”: “^1.0.0-alpha.12”,
Happens in both dev and production mode Was not able to reproduce in a simple snack
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Invariant Violation: Tried to register two views with the same ...
Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider error with @react-navigation/stack.
Read more >Tried to register two views with the same name RNSVGSvgView
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 >Tried to register two views with the same name RNSScreen -
Getting the following issue when I add import { useScreens } from 'react-native-screens'; in my App.js. simulator screen shot - iphone se ...
Read more >Troubleshooting | React Navigation
Error: While trying to resolve module "@react-navigation/native" from file ... I'm getting an error "Tried to register two views with the same name...
Read more >invariant violation: tried to register two views ... - Code Grepper
invariant violation: tried to register two views with the same name rncsafeareaprovider. Add Answer | View In TPC Matrix. Technical Problem Cluster First ......
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 FreeTop 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
Top GitHub Comments
I deleted the react-native-gesture-handler from node_modules/expo/ and it worked for me. It took me so much time to figure it.
The issue is related to the fact
react-native-screens
package is installed several times undernode_modules
in different versions. I am investigating a possible cause of this but one hint that I have for the time being is to try upgradingyarn
and performing a clean install withyarn
instead ofnpm