Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invariant Violation: Module `AppRegistry` is not a registered callable module (calling `runApplication`). and etc

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.

like image 205
MOHAMMAD SIDDIQUE Avatar asked Oct 31 '25 20:10

MOHAMMAD SIDDIQUE


1 Answers

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"
    ]

};
like image 130
Dhanesh M Avatar answered Nov 02 '25 12:11

Dhanesh M



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!