TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')
See original GitHub issueDescription
This error only happens on Android
Version
0.66.3
Output of react-native info
ERROR TypeError: undefined is not an object (evaluating ‘InnerNativeModule.installCoreFunctions’)
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
Steps to reproduce
I installed react navigation (stack and drawer)
I following this documentation: link
Install
yarn add @react-navigation/native
yarn add react-native-screens react-native-safe-area-context
yarn add @react-navigation/drawer
yarn add react-native-gesture-handler react-native-reanimated
Import and config
I putting this import in index.js import 'react-native-gesture-handler';
and I did this config in MainActivity.java
add this method
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}
and this import in MainActivity.java: import android.os.Bundle;
Snack, code example, screenshot, or link to a repository
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:22
- Comments:5
Top GitHub Comments
Whats the solution?
this issue helped me https://github.com/software-mansion/react-native-reanimated/issues/846#issuecomment-943267584