question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')

See original GitHub issue

Description

This error only happens on Android

Screen Shot 2021-12-14 at 16 34 59

Screen Shot 2021-12-14 at 16 35 54

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:closed
  • Created 2 years ago
  • Reactions:22
  • Comments:5

github_iconTop GitHub Comments

8reactions
algoace123commented, Dec 24, 2021

Whats the solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - TypeError: undefined is not an object (evaluating ...
Hello Here is the solution. go to android/app/build.gradle and search for the line project.ext.react = [ enableHermes: false, ...
Read more >
undefined is not an object (evaluating 'InnerNativeModule ...
Description tried upgrade on IOS reanimated to version 2 and getting this error TypeError: undefined is not an object (evaluating 'InnerNativeModule.
Read more >
Troubleshooting common problems | React Native Reanimated
TypeError : Cannot convert undefined value to object on someVariable. ... undefined is not an object (evaluating '_toConsumableArray(Array(length)).map') ​.
Read more >
[Solved]-TypeError: undefined is not an object (evaluating ...
Coding example for the question TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')-React Native.
Read more >
After upgrading reanimate package , my app isn't working
I'm getting this error : TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found