Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native 0.60 connection to development server

(I'm almost a newbie in React Native development) today I have started a new project in React Native 0.60 (react-native init MyApp).

After that I typed : react-native run-android to check if everything worked.

After the bundle process is finished enter image description here I can finally get my welcome screen in my connected devices

enter image description here

But, if I try to reload the app from my devices I get this error:

enter image description here

How could I address this error ?

EDIT: Thank you for your answers, anyway, I have tried all solutions you suggest but I still get the same problem. I also noticed that when i run react-native run-android Metro Bundler (open in a new cli window) seems to start but it suddenly disappear. I think the problem could be with the message 'Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0'

like image 379
DaMatt91 Avatar asked Mar 03 '23 18:03

DaMatt91


1 Answers

react-native run-android not working in new react-native version

0.60

now you can use

 react-native start

OR

 npm start

both command is work

like image 55
SaGaR Patel Avatar answered Mar 19 '23 02:03

SaGaR Patel