Closed iamsamuelhere closed 6 months ago
I can get it working on the Native Android App that we have and working towards adding support for React Native on iOS but it gives me the same error as the first thing when Metro Bundler finishes building (since it runs async storage to store session tokens that we pass down from native side through native module).
I am using react-native 0.72.6
and async on 1.19.3
.
The same expo project. Works in iOS, but not in Android simulator:
"react-native": "0.72.6"
"@react-native-async-storage/async-storage": "1.18.2"
ERROR Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.
To fix this issue try these steps:
• 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/async-storage/issues
This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.
What happened?
Android - npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./index.android.bundle --assets-dest ../index.android.bundle
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null
Version
1.19.3
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
Android - npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./index.android.bundle --assets-dest ../index.android.bundle