You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build Successful, but always got error like below even after I run react-native link @react-native-community/async-storage.
For RN 0.60.0, we do not need to run the link command for native modules, so i get error after I run react-native link ...:
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- @react-native-community/async-storage (to unlink run: "react-native unlink @react-native-community/async-storage")
Expected behavior
For RN 0.60.0, we do not need to run the link command for native modules.
Repro steps
Init a project with react-native 0.60.0 ...
Environment
Async Storage version: 1.5.0
React-Native version: 0.60.0
Platform tested: Android
Logs/Error that are relevant:
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. To fix this issue try these steps: - Run 'react-native link @react-native-community/async-storage' in the project root. - Rebuild and restart the app. ...
So what should I do to fix that for 0.60.
Thanks.
The text was updated successfully, but these errors were encountered:
Ah, it looks like because the react-native-cli autolinking error: :ReactNative:Automatic import of native modules failed. react-native-community/cli#470
The error tells you to unlink manually linked modules if using autolinking (this module is supported, but the docs are not updated yet), so they don't collide and cause issues in future when upgrading. Can we make it more readable for you?
Current behavior
Build Successful, but always got error like below even after I run
react-native link @react-native-community/async-storage
.For RN 0.60.0, we do not need to run the link command for native modules, so i get error after I run
react-native link ...
:Expected behavior
For RN 0.60.0, we do not need to run the link command for native modules.
Repro steps
Init a project with react-native 0.60.0 ...
Environment
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. To fix this issue try these steps: - Run 'react-native link @react-native-community/async-storage' in the project root. - Rebuild and restart the app. ...
So what should I do to fix that for 0.60.
Thanks.
The text was updated successfully, but these errors were encountered: