Module AppRegistry is not registered callable module (calling runApplication)

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

    Ok guys, here we are my solution for this issue:

    • npm install native-base@latest -g

    • npm install react-native@latest -g

    • change package.json for these dependencies

    • delete node_modules and npm install

    • Open it Xcode and Build/Run from scratch

    I hope it helped

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

    I was using native base for my app here is link native base

    and you can see there is no app registry like this

     AppRegistry.registerComponent('Point', () => Point) 
    

    but i have to do this to run my app

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

    Just closing the metro bundler and rebuilding the app done my job.

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

    If you are using windows and running yarn open cmd on admin mode' terminate and Restart the node process by typing this command.

    Find the node: killall -9 node force to kill : taskkill /f /im node.exe Reset the cache : yarn start --reset-cache

    Navigate to your project directory: cd myapp Re-Run your App : yarn android

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

    I had this issue - it was odd because I reset my repo to a time when the app was working. The issue was with my simulator (iOS).

    For me the solution was to

    1. kill the simulator program (quit)
    2. then - close the terminal window that is opened when simulator is ran (Metro Bundler) Image of my terminal window
    0 讨论(0)
  • 2020-11-28 08:36

    For me, restarting my computer appears to be enough to clear this issue.

    It's often required after I've switched between branches, or merged branches using git.

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