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:
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
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
Just closing the metro bundler and rebuilding the app done my job.
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
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
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.