I try to create navigation with { createStackNavigator, createAppContainer } from \'react-navigation\' but when a start my application i always receive error
I try a lo
So I'm using expo SDK32 and had the same issue.
I tried:
rm -rf node_modules && npm install with no luck.react-native-gesture-handler from your package.json and doing rm -rf node_modules && npm install with no luck...I had success by making sure my version of react-native-gesture-handler was only allowing patch changes in the semver.
old package.json line (when name collision error was happening):
"react-native-gesture-handler": "^1.0.12",
(The ^ here tells npm to bump to highest minor version, which installed version 1.4.1)
new package.json line (fixed the error for me):
"react-native-gesture-handler": "~1.0.12",
(The ~ here tells npm to only bump the highest patch version, which installed 1.0.17 and the error was gone)
I'm assuming some kind of collision was happening having different minor versions?
I think this is what @feihcsim was talking about in their answer.
For non-Expo applications, the above-given solution does work out. So, for react-native applications made in ANDROID Studio here is the solution:-
"postinstall": "npx jetifier; patch-package; rm -rf ./node_modules/react-native-linkedin/node_modules/react-native-webview", after "start" key.