Module AppRegistry is not registered callable module (calling runApplication)

后端 未结 22 1294
野的像风
野的像风 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:24

    What worked for me was to just stop the node server running and run 'react-native run-ios' once again

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

    Deleting node_modules and reinstalling it fixed the error(or at least gave me more specific ones)

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

    In my case, trying npm start -- --reset-cache and getting a bunch more errors, I deleted (uninstalled) the app from iOS and Android and yarn ios yarn android did the trick. (If this does not work for you, please kindly DO NOT give me a thumb down. Encourage people to speak, do not discourage them.)

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

    Worked for me for below version and on iOS

     "react": "16.9.0",
     "react-native": "0.61.5",
    

    Step to resolve Close the current running Metro Bundler Try Re-run your Metro Bundler and check if this issue persists

    Hope this will help !

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

    I tried killall -9 node command in terminal

    then again i run my project using npm start and it's working fine

    0 讨论(0)
  • 2020-11-28 08:29
    import { AppRegistry } from 'react-native';
    
    AppRegistry.registerComponent('your app name',  () => point);
    
    0 讨论(0)
提交回复
热议问题