Closed Kudo closed 4 months ago
This PR tries to fix the [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null error when running on react-native@0.74.0-rc.1. The regression was coming from https://github.com/facebook/react-native/pull/41412 and https://github.com/facebook/react-native/issues/43213 has more discussion. This PR follows the create-react-native-library template to rely on BuildConfig
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null
$ npx @react-native-community/cli@latest init RN074 --version next $ cd RN074 $ yarn add @react-native-async-storage/async-storage # edit App.tsx for using async-storage $ cd android $ ./gradlew -PnewArchEnabled=true :app:installDebug $ ./gradlew -PnewArchEnabled=true -PAsyncStorage_useNextStorage=true :app:installDebug
:tada: This PR is included in version 1.22.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thanks @Kudo 🙏
thank you folks for merging and releasing the fix quickly.
Summary
This PR tries to fix the
[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null
error when running on react-native@0.74.0-rc.1. The regression was coming from https://github.com/facebook/react-native/pull/41412 and https://github.com/facebook/react-native/issues/43213 has more discussion. This PR follows the create-react-native-library template to rely on BuildConfigTest Plan