-
Notifications
You must be signed in to change notification settings - Fork 461
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
async-storage is not working after importing as '@react-native-comiunity/async-storage #139
Comments
Hi @MalinPramoditha , Did you follow getting started instructions ? Have you restarted Metro after installing new modules? |
Hi @krizzu yes I restarted the metro bundler.y code is simple
|
class LogInScreen extends Component { |
Can you check if you have |
Hi @krizzu yes |
What version of Async Storage are you using? Try starting packager with your transform caches cleared, with |
@MalinPramoditha How did you import it? What does the import/require statement look like? Did you include the |
I'm using this package when I upgrade the storage of redux-persist See issue here https://github.com/rt2zz/redux-persist/ When I use
I got error saying [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. My app is a react native app. Do I have to have access to native layer to use this package? |
Same here :( |
@stacywang0601 @dante8300 Yes, you have to And make sure you're not using Expo, as this won't work with it. |
I am also having the same issue. I have reinstalled packages multiple times and linked them all. I can also see it inside my node_modules folder. I have reset cache with
However, I have another project W using exactly the same version (1.5.0) and it works (I copy and paste the import statement from W to my project). The only difference is that W is using react native 0.59.9. It might be related to how I setup my packages because I haven't touched that project (not working one) for a while. |
What platform are you having problems with? If it's Android, please manually check your main application for Are you using React Native Navigation by any chance? |
@krizzu You are absolutely right. There is no |
Closing this down. If you need more help, reopen it. |
issue with netinfo and async storage : "@react-native-community/async-storage": "^1.6.1", i had added new AsyncStoragePackage() and new NetInfoPackage() to mainApplication.java, when i run android the build is getting succeeded but app crashes on launch, please help |
Please check your |
if I import async storage from react-native it only works in ios but can't import as react-native-community/async-storage.error is
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module
react-native-community/async-storage
from/Users/conconsolutions1/Documents/projects/venture-trading-app/src/Screens/Login/LogInScreen.js
: Modulereact-native-community/async-storage
does not exist in the Haste module mapThe text was updated successfully, but these errors were encountered: