Solution :
I was going through your question. I will guide you through the steps which you might have missed.
So to begin with it you need to remove your node_modules
also remove package-lock.json
.
After above step you need to run npm install
.
Now you must install the react-navigation
package in the existing React Native project. After that you need to install the react-native-gesture-handler.
Now if you are using the Expo you don’t need to do anything after that everything is included in your SDK.
If not then the most tricky step for you use below command:
npm install react-native-gesture-handler
Lastly you need to link the gesture dependency as shown below:
react-native link react-native-gesture-handler
If you follow all above steps then your issue will be resolved.