Reputation: 73
I have a react native application. All of a sudden i start getting this error. I didnt change any of the files in react-navigation. Why does this error come even if i dont change anything in the App.js or any Navigation files,
Upvotes: 2
Views: 5626
Reputation: 1560
In my case, first I closed the app in the simulator and then and rebuild the app with react-native run-ios command and error message is gone away.
Upvotes: 0
Reputation: 418
The install/uninstall solution didn't work for me.
I fixed this issue with just a "pod install
" in ios project (I thought that RNGestureHandler was already installed but no it wasn't, I don't know why).
After that I was able to run my project in the ios simulator.
Upvotes: 3
Reputation: 425
If Linking is not working, then you should do this (for me worked):
react-native unlink react-native-gesture-handler
npm uninstall react-navigation
npm uninstall react-navigation-gesture-handler
Than, follow these steps:
npm install --save react-navigation
npm install --save react-native-gesture-handler
react-native link react-native-gesture-handler
What i did wrong, is that i didn't '--save' Gesture Handler.
Upvotes: 2