-
Notifications
You must be signed in to change notification settings - Fork 466
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
React native Asyncstorage issues #1169
Comments
I also encountered the same problem here after upgrading to 0.76.5. I have already moved the project from MMKV to “vanilla” AysncStorage and basically end up with the same result. Do we have individual project setup problems? |
Having the same problem |
In my case, it is working on iOS simulators, but I am having issues with Android. I am waiting for assistance. Can anyone please guide me? |
hello, having the same problem (i moved my app from 0.75.4 to 0.76.5, although in IOS platform work properly, in android didn't work). please any help |
Hi @TonyFTannous-Byd, |
@aiengrimran, it is working in your version 0.76.4? |
@TonyFTannous-Byd it is not working on android otherwise iOS works fine. |
What happened?
UserListScreen.js:18 Warning: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.
To fix this issue try these steps:
• Uninstall, rebuild and restart the app.
• Run the packager with
--reset-cache
flag.• If you are using CocoaPods on iOS, run
pod install
in theios
directory, then rebuild and re-run the app.• Make sure your project's
package.json
depends on@react-native-async-storage/async-storage
, even if you only depend on it indirectly through other dependencies. CLI only autolinks native modules found in yourpackage.json
.Version
@react-native-async-storage/async-storage": "^2.1.0"
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
--reset-cache
grdlew clean,
again install @react-native-async-storage/async-storage
but same issue
chart gpt suggestion add, but same issue facing last 4 days.
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage
class MainApplication : Application(), ReactApplication {
override fun getPackages(): List {
return PackageList(this).packages + listOf(
AsyncStoragePackage() // Ensure this is included in your package list if you use an older version of React Native.
)
}
}
The text was updated successfully, but these errors were encountered: