Home > database >  Invariant Violation: Module `AppRegistry` is not a registered callable module (calling `runApplicati
Invariant Violation: Module `AppRegistry` is not a registered callable module (calling `runApplicati

Time:02-23

I am making a project using react-native, when I added drawer navigation it started giving me an error as:

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., js engine: hermes

so when I search for the solution I came across this answer https://github.com/software-mansion/react-native-reanimated/issues/846#issuecomment-943267584 - But when I followed the procedure as given in this link it started giving me two error - Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?, js engine: hermes and also the above error. I am using react-native 0.67. please help if you can.

CodePudding user response:

try to add this line in your babel.config.js file; Then run again, may be helps you

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
      "react-native-reanimated/plugin"
    ]

};
  • Related