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. #1168

Open
1 of 5 tasks
Kontortaa opened this issue Dec 9, 2024 · 11 comments
Open
1 of 5 tasks

[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. #1168

Kontortaa opened this issue Dec 9, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@Kontortaa
Copy link

What happened?

(NOBRIDGE) ERROR Warning: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

"dependencies": {
"@react-native-async-storage/async-storage": "^2.1.0",
"@react-navigation/elements": "^2.2.4",
"@react-navigation/native": "^7.0.13",
"@react-navigation/native-stack": "^7.1.14",
"nativewind": "^4.1.23",
"react": "18.3.1",
"react-native": "0.76.4",
"react-native-mmkv": "^3.1.0",
"react-native-onesignal": "^5.2.7",
"react-native-reanimated": "^3.16.3",
"react-native-safe-area-context": "^5.0.0",
"react-native-screens": "^4.3.0",
"react-native-svg": "^15.10.1",
"react-navigation": "^5.0.0",
"tailwind-rn": "^4.2.0",
"tailwindcss": "^3.4.16"
}

This is how my package.json file looks. I installed the package using npm install and I'm still getting this error. I'm encountering this issue when running the npx react-native start --reset-cache command, not during testing. I've uninstalled and reinstalled the app multiple times, but the issue persists.

Version

2.1.0

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

info Fetching system and libraries information...
System:
  OS: macOS 15.1.1
  CPU: (8) arm64 Apple M1
  Memory: 481.52 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.13.1
    path: ~/.nvm/versions/node/v20.13.1/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.13.1/bin/yarn
  npm:
    version: 10.5.2
    path: ~/.nvm/versions/node/v20.13.1/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.4
    wanted: 0.76.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to Reproduce

I installed the package using npm install and I'm still getting this error. I'm encountering this issue when running the npx react-native start --reset-cache command, not during testing. I've uninstalled and reinstalled the app multiple times, but the issue persists.

@Kontortaa Kontortaa added the bug Something isn't working label Dec 9, 2024
@satheshrgs-rksv
Copy link

Facing the same issue

@Kaushalparajuli
Copy link

same issue

@khoahuynh86
Copy link

Facing the same issue with different versions in android env

@nagaraj-230
Copy link

i am also facing this issue how to solve this

@JayantKumarbvi
Copy link

I am also facing same issue

@nagaraj-230
Copy link

nagaraj-230 commented Dec 11, 2024

the solution is use react native version "react-native": "0.76.3", instead of "react-native": "0.76.4",
i think the updated version is the problem, in "react-native": "0.76.4" - the react-native-document-picker is also not working after using the "version react-native": "0.76.3" the both npm working fine

@sashtiapps
Copy link

@nagaraj-230 You saved my day!

@tyler-canton
Copy link

Wait do we have the option to go UP to 0.76.5??

@nil-kombee
Copy link

the solution is use react native version "react-native": "0.76.3", instead of "react-native": "0.76.4", i think the updated version is the problem, in "react-native": "0.76.4" - the react-native-document-picker is also not working after using the "version react-native": "0.76.3" the both npm working fine

doing that still getting problem

@georgest
Copy link

Using React Native 0.76.3 works for me.

@tyler-canton
Copy link

tyler-canton commented Dec 28, 2024

I'm now using 76.5 and its working good gosh...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants