Closed oshaleyko59 closed 10 months ago
Please see if https://github.com/react-native-async-storage/async-storage/issues/994#issuecomment-1676060963 helps:
I don't know if Expo autolinks native modules the same way vanilla React Native does, but assuming it does, you need to explicitly take dependency on AsyncStorage if any of your dependencies need it. Autolinking only links native modules that are found in the current project's
package.json
.
same error😟
Please see if #994 (comment) helps:
I don't know if Expo autolinks native modules the same way vanilla React Native does, but assuming it does, you need to explicitly take dependency on AsyncStorage if any of your dependencies need it. Autolinking only links native modules that are found in the current project's
package.json
.
Yes! I did install react-native-async-storage/async-storage, even not using directly (but Firebase uses it) and it helped. However, I would expect the third-party dependencies are taken careof ...
I did install react-native-async-storage/async-storage, even not using directly (but Firebase uses it) and it helped. However, I would expect the third-party dependencies are taken careof ... Expo itself runs perfectly without it
What happened?
Android Bundling complete 10043ms - just after completing build with eas and then trying to start app on Android, it crashes with error (rebuil-restart tried - no help, the same app works on Expo Go without any issue ):
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 theios
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 , js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:
AppRegistry.registerComponent
wasn't called., js engine: hermesVersion
no dependancy on @react-native-async-storage/async-storage
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
it just happens with my environment - as far as i understand searching for the same, there is no clear understanding how to reproduce it