I have installed react-navigation in my React Native project. Its a starter project doesn\'t have any codes. But while running project I am facing
Since I am not allowed to comment, I am posting it here. This is the answer by @Amiri Houssem but I am adding one more thing:
remove node_modules and package-lock.json
npm install
npm install --save react-navigation
npm install --save react-native-gesture-handler
react-native link
If there is an error even after these 5 steps, check android/settings.gradle and change that line to this:
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')