3

After upgrading "react-native": "0.70.0" and "react": "18.2.0", project is giving this error:

ERROR  TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.style')
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.

In Emulator it is showing as:

enter image description here

How can I fix that?

4
  • what was your version before upgrading Commented Sep 8, 2022 at 10:31
  • before upgrading versions are "react": "16.11.0" and "react-native": "0.62.1". Commented Sep 8, 2022 at 10:35
  • I am getting the exact same error. Any idea of how to fix this ? Commented Nov 11, 2022 at 8:59
  • @GeoMukkath Downgrade the java version to 1.8. It will work. Commented Nov 11, 2022 at 14:33

1 Answer 1

1

Downgrade the java version to 1.8. It will work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.