Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null in iOS
See original GitHub issueCurrent behavior
In Android AsyncStorage works fine for me, I have tried in an iOS emulator and it is returning this error:
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:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For future, this tools is super useful when doing RN upgrades
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 necessaryI 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?