async-storage: NativeModule: AsyncStorage is null, with @RNC/AsyncStorage

What happened?

Screen Shot 2021-10-22 at 2 59 30 pm

Version

1.15.9

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
    OS: macOS 11.5
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 728.45 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.0 - /usr/local/bin/node
    npm: 6.14.15 - /usr/local/bin/npm
    Watchman: 2021.10.11.00 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
  IDEs:
    Xcode: 12.0/12A7209 - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: ^4.2.4 => 4.2.4 
    react: 16.8.3 => 16.8.3 
    react-native: 0.60.0 => 0.60.0 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Steps to Reproduce

1.Build Success 2.Issue is generated while running in simulator Dear @Krizzu im stuck with this from 5 days

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 18 (5 by maintainers)

Most upvoted comments

I am facing same problem in android. Is there any solution for this.

/ReactNativeJS: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

You can use this tool, because there’s much more than just bumping version in package.json

https://react-native-community.github.io/upgrade-helper/

I think you either upgrade to 60+ RN version or downgrade AsyncStorage (probably to v1.13.2). There are constant changes happening to RN, so staying up to date is always encouraged.

node_modules/@react-native-async-storage/RNCAsyncStorage.podspec

- s.dependency 'React-Core'
+ s.dependency 'React'