Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

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

1 possible answer(s) on “Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

  1. @jiaxiangcheng: Please ask in Expo’s forums. I think you’ll get better answers there. I have no experience with Expo myself.

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

Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null

When I run npm start the following error is generated.

Details:

  • I have already tried running npx react-native link @react-native-community/async-storage and restarted the build with all the options shown in the screen.

while running pod install there are still errors
- ERROR | attributes: Missing required attributehomepage. - WARN | source: The version should be included in the Git tag. - WARN | description: The description is equal to the summary.

image

Can anyone help, what’s wrong with the steps?

1 possible answer(s) on “Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null

Error [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null

Current behaviour

Sorry, i am new in react native, i just want to run the simple apps using a device but it turns to error. it working when i run in browser that have asyncstorage

Repro steps

Steps I took are as follows:

  • npm cache clean –force
  • npm start

Environment

  • Async Storage version: 1.10.0
  • React-Native version: 0.61.4
  • Platform tested: Android (not simulator)
  • Expo version: 36.0.0

1 possible answer(s) on “Error [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null