Skip to content
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

[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null #596

Closed
2 of 4 tasks
JigmeLodey opened this issue May 3, 2021 · 10 comments
Closed
2 of 4 tasks

[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null #596

JigmeLodey opened this issue May 3, 2021 · 10 comments
Labels
need info Need more information from the author

Comments

@JigmeLodey
Copy link

JigmeLodey commented May 3, 2021

Current behavior

Expected behavior

Repro steps

Environment

  • Platforms tested:
    • Android
    • iOS
    • macOS
    • Windows
  • AsyncStorage version:
  • Expo version:
  • Environment:
  • Logs/Errors that may be relevant:
@tido64
Copy link
Member

tido64 commented May 3, 2021

Please fill out the template when filing new issues. They're there so we can better help you.

  • What version are you using?
  • Provide information about your dev environment: Run yarn react-native info and paste the output here.
  • Provide repro steps or a minimal project with the bug reproducible. We cannot help you if we can't repro this locally.

@ZincPartnersDev

This comment has been minimized.

@tido64

This comment has been minimized.

@JigmeLodey
Copy link
Author

JigmeLodey commented May 4, 2021

i am using react-native and testing in android, since i have implement this storage i have getting issue, i tried all way like removing node module and resting my react cache still having same problem. I using NX with React native

@ZincPartnersDev

This comment has been minimized.

@tido64
Copy link
Member

tido64 commented May 4, 2021

i am using react-native and testing in android, since i have implement this storage i have getting issue, i tried all way like removing node module and resting my react cache still having same problem. I using NX with React native

@JigmeLodey: You still need to fill out the template. We don't know what your set up looks like.

  • What version are you using?
  • Provide information about your dev environment: Run yarn react-native info and paste the output here.
  • Provide repro steps or a minimal project with the bug reproducible. We cannot help you if we can't repro this locally.

Is this what NX refers to: https://github.com/nrwl/nx-react-native? Have you tried reaching out to them?

@krizzu krizzu added the need info Need more information from the author label May 17, 2021
@spuerto-rico
Copy link

spuerto-rico commented Jul 16, 2021

I experience the same in my React Native 59.9. anyone solve this already?

Screen Shot 2021-07-16 at 9 12 17 PM

@amandwivedi07
Copy link

Please Help Getting the same issue

@AbutoJoshua
Copy link

I have the same issue but I initialized my project with expo and not necessarily react native. How can I solve that?
Screen Shot 2021-08-08 at 10 55 50 AM

@tido64
Copy link
Member

tido64 commented Aug 12, 2021

@spuerto-rico: You're using a two year old version of React Native. Recent improvements such as auto-linking should solve your issue without having to mess around with project files. If you're unable to update, I'd have a look at how to manually link AsyncStorage into your project.

@AbutoJoshua: If you're using Expo, please ask in the Expo forum. This thread is probably a good start: https://forums.expo.io/t/expo-40-rn-asyncstorage-nativemodule-asyncstorage-is-null/46757/4

In general, Expo is not really using this library. It is compatible, but the code isn't used. You're using the binaries that come with Expo SDK. If you're having issues with it, please ask in the Expo forum. We cannot help you.

If you're not using Expo, we need your full system information and repro steps to help you. In most cases, it's a setup issue and not a bug in AsyncStorage. Reading the documentation on how this works might help you: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md.

If you're still stuck, please open a new issue but do note that with our limited capacity, we will prioritize real bugs over providing support.

@tido64 tido64 closed this as completed Aug 12, 2021
@react-native-async-storage react-native-async-storage locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need info Need more information from the author
Projects
None yet
Development

No branches or pull requests

7 participants