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 RNSScreen

See original GitHub issue

Getting the following issue when I add import { useScreens } from 'react-native-screens'; in my App.js

simulator screen shot - iphone se - 2018-09-20 at 15 25 00

simulator screen shot - iphone se - 2018-09-20 at 15 25 02

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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

17reactions
ranjitatwal30commented, Mar 16, 2019

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.

9reactions
kmagieracommented, Sep 24, 2018

The issue is related to the fact react-native-screens package is installed several times under node_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 upgrading yarn and performing a clean install with yarn instead of npm

Read more comments on GitHub >

github_iconTop 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 >

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