react-nativereact-proptypes

Getting `TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.style')` in ReactNative


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?


Solution

  • Downgrade the java version to 1.8. It will work.