prazeev
prazeev

Reputation: 93

Loading react native issue on emulator GenyMotion

I am using react native

react-native-cli: 2.0.1 react-native: 0.55.3

I was running via react-native run-android

The screen is always loading the app (Debugger Mode)

NOTE: It was sudden issue, it was working fine till yesterday. *PC is Restarted several time and also JS server using kill -9 PID

enter image description here

Upvotes: 0

Views: 2206

Answers (3)

rcnespoli
rcnespoli

Reputation: 703

Temporary fix:

REACT_TERMINAL=<your terminal> react-native run-android

in my case with manjaro + xfce4:

REACT_TERMINAL=xfce4-terminal react-native run-android

or puts in your .bashrc:

export REACT_TERMINAL=xfce4-terminal

Upvotes: 0

nahoang
nahoang

Reputation: 2478

I've met this error before when I started to programming React Native on Ubuntu.

The reason why you got this error because your Genymotion didn't have same port with local machine.

So here is the solution:

  • Open the Developer Menu of mobile app on Genymotion
  • Choose the Debug Server port & port for device
  • Set the value localhost:8081
  • reload the app and enable the Debug. Now you can debug the app.

Cheer!

Upvotes: 2

Jaro
Jaro

Reputation: 1687

Maybe it is a problem with the app already installed in your phone.
Try running :

adb uninstall com.yourproject

This will install all of your project packages for all users on your emulator/phone

Upvotes: 0

Related Questions