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:
I have solved it, just closing the current Metro Bundler and restarting by type comment below.
npm start -- --reset-cache
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
}
}
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.
You should have this at the bottom of the index.ios.js
file
AppRegistry.registerComponent('Point', () => Point);
and also import AppRegistry
from react-native