Current 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
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!!!!