-
-
Notifications
You must be signed in to change notification settings - Fork 526
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 RNSScreen #15
Comments
I had the same issue but with the app created with |
I'm also running into this issue using in an ejected CRNA app alongside The app I'm working on uses multiple types of nested navigators (stack, switch, drawer, tab) and has multiple stack navigators. I wonder if having multiple navigators setup is part of the issue here? |
The issue is related to the fact |
@kmagiera what do you mean by " |
@kmagiera any solution for that? |
error appears when upgrading react-navigation to v2.16.0. Since react navigation uses react-native-screens. |
So, related to this:
can't really investigate it more atm, but yeah there is probably something with a clash. |
^ Bumping I can submit this back to the main repo if there is no preferred alternative. |
2.x of react-navigation depends on ^1.0.0-alpha.11 which should match 1.0.0-alpha.15. however, another package has installed react-native-screens with a more strict dependency that doesn't match this range, for example if your package.json explicitly includes [email protected], then you will end up with 2 copies of react-native-screens. i'd check your yarn.lock to see what package is installing which version of it. useful reference: |
(update: with ReactNav v3 the issue disappears 👌) |
Had the same issue, with
|
Is there a way to solve this error when using reac-native-screens as a local_module? I'm currently trying to fix this library for tvOS but because it is a dependency now of Any tips for that? |
Fix for: software-mansion/react-native-screens#15 Removing react-native-gesture-hanler from package.json fixed the problem.
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. |
@ranjitatwal30 , thanks a lot man , it saves e a lot of time 👍 |
@ranjitatwal30 it works for me too !!! thank you !!! |
it works! |
thank u. |
For people not using Expo: I had the problem with My yarn.lock was:
So i installed |
Can someone tell if the issue still exists in the newer versions of Expo and Screens? |
I am closing it due to no response in more than 30 days. Feel free to comment to reopen it. |
Getting the following issue when I add
import { useScreens } from 'react-native-screens';
in my App.jsreact-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
The text was updated successfully, but these errors were encountered: