React-native: Question: Demistify whats happening on this screen - Appstate issue on Android

Created on 15 Jul 2019  路  5Comments  路  Source: facebook/react-native

hi guys

Im still trying to understand what issue is happening on this one
Can someone explain to me what could be the issue

this is happening on Android device
react native version: 0.60.3

Screenshot_20190715-192459_HowsyApp

my logcat says the ff:

2019-07-15 19:44:19.370 2128-2160/com.howsyapp E/ReactNativeJS: AppState is not available in this app.
2019-07-15 19:44:19.388 2128-2128/com.howsyapp D/Dialog: mIsSamsungBasicInteraction = false
2019-07-15 19:44:19.388 2128-2128/com.howsyapp D/Dialog: mIsSamsungBasicInteraction = false, isMetaDataInActivity = false
2019-07-15 19:44:19.466 2128-2160/com.howsyapp E/ReactNativeJS: Requiring module "node_modules/react-native/Libraries/Core/InitializeCore.js", which threw an exception: Invariant Violation: AppState is not available in this app.
2019-07-15 19:44:19.469 2128-2128/com.howsyapp D/InputTransport: Input channel constructed: fd=98

Ran Commands Question

Most helpful comment

I just got the same error. The problem basically is that React core in Android was not loaded properly, which is caused by omitting new MainReactPackage() from the list of packages returned by your implementation of MainApplicaction.getPackages(). If you're using auto-linking, make sure the list of packages returned by new PackageList(this).getPackages(); is not overwritten. If you're not using auto-linking, add new MainReactPackage() to the list of packages manually.

All 5 comments


We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

馃憠 Click here if you want to report a reproducible bug or regression in React Native.

me too

I was also getting the same error with RN 0.60.3. I was using util.Arrays class for adding packages in MainApplication.java. Once I removed that Arrays import the error disappeared. I am not sure how to fix the error if we want to use Arrays class compulsory.

I am facing the same issue
react native version: 0.60.3

I just got the same error. The problem basically is that React core in Android was not loaded properly, which is caused by omitting new MainReactPackage() from the list of packages returned by your implementation of MainApplicaction.getPackages(). If you're using auto-linking, make sure the list of packages returned by new PackageList(this).getPackages(); is not overwritten. If you're not using auto-linking, add new MainReactPackage() to the list of packages manually.

Was this page helpful?
0 / 5 - 0 ratings