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
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 firstname.lastname@example.org
Don’t forget to dismiss (ESC) the error page(s) and rebuild. Hope this helps!