question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Current behavior

In Android AsyncStorage works fine for me, I have tried in an iOS emulator and it is returning this error:

image

I’ve tried all the instructions in the error message, and I’ve looked for the same error and can’t find the solution. First I linked RNCAsyncStorage, but now I get unlinked.

I have in Podfile RNCAsyncStorage like this pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'

Environment

  • Async Storage version: 1.12.0
  • React-Native version: 0.61.5
  • Platform tested: iOS
  • I’m not using expo

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
krizzucommented, Sep 1, 2020
2reactions
picknamexdcommented, Aug 24, 2020

Remove pod 'RNCAsyncStorage' entry from Podfile, run pod install again and reinstall the app (react-native run-ios). Async Storage is linked automatically, so you don’t have to include it manually

I have followed the following steps:

  • I have deleted RNCAsyncStorage from podfile as you told me

  • I have added yarn add @ react-native-community / async-storage in case it had been necessary

  • I have run inside the ios folder pod install

  • I have used react-native start --reset-cache -force

  • Finally I started normally with react-native run-ios

  • I have also opened the project with xcode with the command xed ios and I have executed on the play button

  • Result: same error

Can you think of anything else? Do you need me to provide more information?

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - NativeModule: AsyncStorage is null, with @RNC ...
To fix this issue try these steps: -Run `react-native link @react-native-community/async-storage` in the project root. -Rebuild and restart the ...
Read more >
NativeModule: AsyncStorage is null · Issue #768 - GitHub
Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. To fix this issue try these steps: • Rebuild and restart the app.
Read more >
ERROR Error: [@RNC/AsyncStorage]: NativeModule - Medium
ERROR Error : [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. Rebuild and restart the app. Run the packager with '--reset-cache' flag.
Read more >
Error ReactNative AsyncStorage is null iOS-React Native
Coding example for the question Error ReactNative AsyncStorage is null iOS-React Native.
Read more >
NativeModule: AsyncStorage is null EXPO EAS app - Reddit
Error : [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null EXPO ... If you are using CocoaPods on iOS, run `pod install` in the `ios` ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found