Module AppRegistry is not registered callable module (calling runApplication)

后端 未结 22 1292
野的像风
野的像风 2020-11-28 07:56

I am using native base for making app in react-native. I am new to both things. When I run the app It gives me this error:

Here is my code:

         


        
相关标签:
22条回答
  • 2020-11-28 08:37

    I have solved it, just closing the current Metro Bundler and restarting by type comment below.

    npm start -- --reset-cache
    
    0 讨论(0)
  • 2020-11-28 08:38

    I am using Expo

    In my case, I resolved the issue by adding the following code in app.json file

    "expo":{
      ...
      "android": {
        "package": "com.mycompanyname.myappname
      }
    }
    
    0 讨论(0)
  • 2020-11-28 08:39

    you just need to close the metro server by control + c and then restart by npm start

    Note: If that too doesn't work then just restart your computer, it'll definitely work then.

    0 讨论(0)
  • 2020-11-28 08:40

    You should have this at the bottom of the index.ios.js file AppRegistry.registerComponent('Point', () => Point); and also import AppRegistry from react-native

    0 讨论(0)
提交回复
热议问题