You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the ios 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 your package.json.
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:
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.
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: