-
Notifications
You must be signed in to change notification settings - Fork 473
Doesn't run on Android with RN > 0.58 #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mxmzb Hey, thanks for reporting this! Can you confirm that you linked the package using |
@krizzu Sure! Yes, I did link and reinstall. |
@mxmzb I created new project with version 59 and I see no issue with Async Storage. Does it happen on |
@krizzu I don't explicitly call these methods in my app, just having the package imported crashes my app. I will have another look at whether it maybe depends on some other config that I've set, maybe it's some babel plugin. |
Right, thanks @mxmzb . This one is interesting to debug - I could use some more info about your setup to replicate it. |
I am having the same issue. When using AsyncStorage from 'react-native' it works fine, as soon as I import AsyncStorage from '@react-native-community/async-storage' the app crashes (before any call is made to AsyncStorage itself). My dependencies are: "dependencies": { |
My solutionIn
|
Still, I cannot repro this - importing AS from RN, then from community's package is not crashing for me. What about clearing packager cache with @voroncv I'm not convinced that gradle version has anything to do with JS bundling here, but thanks for your input. |
Experiencing the same issue with RN0.59 running on a Nexus 5 emulator. Reverting back to import {AsyncStorage} from "react-native" for the moment. |
Oops, GH closed the issue - reopening for further discussion. Let me know if latest release have fixed the issue. |
@krizzu The release note for |
Works for me with RN 0.59.2 and store 1.2.2 |
@mifi Good you got it working. If anyone need more help, please re-open this issue. thanks. |
I'm having the same issue on Android. It simply just doesn't run and crashes (freezes) on the splash screen. |
I think I believe I found the issue. Using auto link, react-native link : (in my code) has a bug and doesn't add the code in the section new AsyncStoragePackage() in MainApplication.java If you follow the manual way: ...should be good to go: |
I'm happy to see you got it working @tkoolreact. When you thanks. |
Same issue here. App crashes on open, on both platforms, IOS and Android. RN version 0.59.9. |
I'd need more info to know why it's crashing |
Seeing the same issue on startup in version 0.59.8. I am using "AsyncStorage" from react-native.
|
Current behavior
Running an app which includes AsyncStorage from this package instead of
react-native
will crash the app on startup.Expected behavior
It doesn't crash the app on startup.
Repro steps
Just include the package with any RN > 0.58 (I think with all the gradle upgrades coming in 0.58 as well)
Environment
This is the log from the production device / emulator:
The text was updated successfully, but these errors were encountered: