4
Guys, I have a problem with React Navigation after the last update of React-Native for version 0.60.0
The react-native-gesture-handler
is not compatible because of a autolink that the new version of React-Native has.
I’ve searched everything that is forum and I haven’t seen anyone with the solution, to run my project after installing the react-native-gesture-handler
.
Here’s what I did to make it clear:
I created the project with:
react-native init PROJETO;
I installed the React-navigation:
yarn add react-navigation
(Obs: I tried with NPM too)
I installed the react-native-gesture-handler
:
yarn add react-native-gesture-handler
(Obs: also with NPM);
Linkei, as the manual says:
react-native link react-native-gesture-handler
I made the necessary changes to Mainactivity.java, also according to the manual.
But when I run the project:
react-native run-android
Makes the mistake:
error React Native CLI uses autolinking for native dependencies, but the following
modules are linked manually:
react-native-gesture-handler (
to unlink run: "react-native unlink react-native-gesture-handler")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above.
Going forward, you can unlink this dependency via "react-native unlink " and it
will be included in your app automatically.
If a library isn't compatible with autolinking, disregard this message and notify
the library maintainers.
My dependencies are like this:
"dependencies": {
"react": "16.8.6",
"react-native": "0.60.0",
"react-native-gesture-handler": "^1.3.0",
"react-navigation": "^3.11.0"
}
If anyone knows the solution, help me, VLW !!!
I do not use React-Native, but I did a quick search and it seems to me that you have an open request for this problem on https://github.com/kmagiera/react-native-gesture-handler/, this link also seems to have a palliative measure.
– Icaro Martins