[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null (0.61.5)
See original GitHub issueI upgraded react-native from 0.59.8
to 0.61.5
Unlinked @react-native-community/async-storage
App builds successfully and splash screen comes. After that it says (In Android):
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null
- Run react-native link @react-native-community/async-storage
When I tried linking it says:
info Linking "@react-native-community/async-storage" iOS dependency
error Linking "@react-native-community/async-storage" failed.
If I try unlinking again (I already did before as I encountered error while upgrading), it says
info iOS module "@react-native-community/async-storage" is not installed
info Android module "@react-native-community/async-storage" is not installed
Why does it say @react-native-community/async-storage
is not installed even after I installed the package?
I tried removing the package and installing again. Same errors
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:25 (9 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 >Expo/React-native AsyncStorage.getItem() resolves to null ...
Coding example for the question Expo/React-native AsyncStorage.getItem() resolves to null-React Native.
Read more >Active questions tagged react-native+ios - Stack Overflow
Next react-native-ffmpeg: Native module cannot be null (ios) and null is not an ... After updating to React Native 0.61.5 I am having...
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
Now I know why I dont have android folder files, I am Using
Expo
and it does not support native modules likeasync-storage
because it will look forsetting.gradle
or other files inside your android folder or ios folder. See https://facebook.github.io/react-native/docs/getting-started atCaveats
In other words, we need to use
react-native eject
orexpo eject
@Krizzu Thanks, it removed the error. (But a lot of dependencies kept showing errors one after another. It’s a production app. So I created new project and migrated code to move fast)