react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
261 stars 2 forks source link

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

Open sandeeptheminery opened 1 year ago

sandeeptheminery commented 1 year ago

React Native ios app - XCode(Version 13.2.1) , Mac M1

react-native info log

warn Package react-native-firebase contains invalid configuration: "dependency.platforms.ios.podspecPath" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. info Fetching system and libraries information... (node:10196) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) System: OS: macOS 12.2.1 CPU: (8) x64 Apple M1 Memory: 35.66 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.10.0 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.19.3 - /opt/homebrew/bin/npm Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: ^10.1.3 => 10.1.3 react: 18.2.0 => 18.2.0 react-native: 0.71.1 => 0.71.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Things I’ve done to figure out my issue

upgraded from react native 0.61.5 to 0.71.1

Description

After upgrading the ios app build works but while loading on simulator it throws this error Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

I have tried reset cache, removed ios/pods and did pod install, removed simulator data and also rebuild the project again but it didn't work, please help!

E1
98rahul commented 1 year ago

AsyncStorage removed from react-native see here