Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.
See original GitHub issueCurrent behavior
To fix this issue try these steps:
• Run react-native link @react-native-async-storage/async-storage
in the project root.
• Rebuild and restart the app.
• Run the packager with --reset-cache
flag.
• If you are using CocoaPods on iOS, run pod install
in the ios
directory and then rebuild and re-run the app.
• If this happens while testing with Jest, check out docs how to integrate AsyncStorage with it: https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-async-storage/react-native-async-storage/issues
[Tue Feb 09 2021 12:09:31.370] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
These steps are not working infact giving error like autolinking is deprecated
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top GitHub Comments
I have resolved by changing these lines:
const { getDefaultConfig } = require(“metro-config”); -> const { getDefaultConfig } = require(“@expo/metro-config”);
const { resolver: { sourceExts, assetExts }, } = await getDefaultConfig(); -> const { resolver: { sourceExts, assetExts }, } = await getDefaultConfig(__dirname);
Thanks for your idea to fix the problem!!!
@jiaxiangcheng: Please ask in Expo’s forums. I think you’ll get better answers there. I have no experience with Expo myself.