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:
What worked for me was to just stop the node server running and run 'react-native run-ios' once again
Deleting node_modules and reinstalling it fixed the error(or at least gave me more specific ones)
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.)
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 !
I tried killall -9 node
command in terminal
then again i run my project using npm start
and it's working fine
import { AppRegistry } from 'react-native';
AppRegistry.registerComponent('your app name', () => point);