Tried to register two views with the same name RNGestureHandlerButton – React Native Navigation

I’m using React Native and trying to start a simple stack navigator with React Navigation. In following all of the recommended docs to get started, I keep running into the following issue:

Tried to register two views with the same name RNGestureHandlerButton
The error message on the iOS simulator.

This seems to be a relatively new issue at the time of posting this, and there is little information available on resolving it. So, I’m presenting a not-exactly-elegant solution, but I figured I would post something to help others who may run into this problem.

Simply revert to an older version of React Navigation. I’ve found that release 2.0.1 escapes this problem.

npm uninstall react-navigation

npm install react-navigation@2.0.1

Don’t forget to dismiss (ESC) the error page(s) and rebuild. Hope this helps!

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *