Answer the question
In order to leave comments, you need to log in
It knocks out an error about manually linking the project to the module, although there was no manual linking, how to fix the error?
Good day. I want to add the react-native-fs library to my project. Further, according to the documentation, I do the following commands:
npm install react-native-fs --save - download the
react-native link library react-native-fs - write the automatic linking command .
When I run the react-native run-android project , I get the following error:
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- react-native-fs (to unlink run: "react-native unlink react-native-fs")
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
Answer the question
In order to leave comments, you need to log in
In order to correctly remove the library, write the commands
react-native unlink react-native-fs
yarn remove react-native-fs
IMPORTANT
For RN < 0.57 and/or Gradle < 3 you MUST install react-native-fs at version @2.11.17!
For RN >= 0.57 and/or Gradle >= 3 you MUST install react-native-fs at version >= @2.13.2!
For RN >= 0.61 please install react-native-fs at version >= @2.16.0!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question