Skip to content
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

Error: Tried to register two views with the same name RNGestureHandlerButton #5453

Closed
spyshower opened this issue Jan 6, 2019 · 3 comments
Closed

Comments

@spyshower
Copy link

spyshower commented Jan 6, 2019

Current Behavior

After upgrading Expo to 32.0.0, I get the following error:

screenshot 2019-01-07 at 00 57 08

I check out this issue: #5293

Tried to delete react-native-gesture-handler with no luck.

screenshot 2019-01-07 at 01 45 20

I use the latest versions of Expo, RN, react-navigation and npm.

@brentvatne
Copy link
Member

run expo init to create a new project with the tabs template and notice that it works as expected with the same version of expo and react-navigation. look at the package.json there and compare with yours. it looks like you installed react-native-gesture-handler manually in your project, remove it and remove your package-lock.json and delete node_modules and reinstall. if that doesn't fix it then please share a reproducible example in a new issue as per the issue template, thanks!

@spyshower
Copy link
Author

The error came before I manually installed it. I uninstalled it again now but I get the same error. Also, this is the output from the new project as you suggested (it launched without problems):

screenshot 2019-01-07 at 02 25 07

You asked to share an example. What kind of example? This is an error that I believe happens behind the scenes and out of my control so I have no idea what to upload.

@brentvatne
Copy link
Member

it is entirely under your control, as i mentioned it works on a new project as expected. an example is a runnable minimal example - see https://stackoverflow.com/help/mcve for more info

if doing what i described above doesn't work then sorry you need to share a mcve and create a new issue

@react-navigation react-navigation locked as off-topic and limited conversation to collaborators Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants