This error came up after upgrading to React Native 0.60.
I've tried to manually unlink each manually linked dependency using react-native unlink <dependency>
as suggested in the error message, but the problem still persists.
The error message is as follows:
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: - react-native-admob (to unlink run: "react-native unlink react-native-admob") - react-native-facebook-account-kit (to unlink run: "react-native unlink react-native-facebook-account-kit") - react-native-fbsdk (to unlink run: "react-native unlink react-native-fbsdk") - react-native-gesture-handler (to unlink run: "react-native unlink react-native-gesture-handler") - react-native-linear-gradient (to unlink run: "react-native unlink react-native-linear-gradient") - react-native-localization (to unlink run: "react-native unlink react-native-localization") - react-native-restart (to unlink run: "react-native unlink react-native-restart") - react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons") - react-native-webview (to unlink run: "react-native unlink react-native-webview") 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 <dependency>" 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. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
I managed to make the error go away by doing as follows:
// react-native.config.js module.exports = { dependencies: { '<dependency>': { platforms: { android: null, // disable Android platform, other platforms will still autolink }, }, }, };
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With