Stuck on info starting JS server
Temporary fix:
REACT_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
font: https://github.com/facebook/react-native/issues/26097
Linux:
Go to the terminal and type:
react-native start
and then in OTHER terminal, inside your project folder:
yarn android
or
npm run android
I had the same problem. I started a project yesterday and it worked, started a new one today and it didn't work. The problem seems to be "@react-native-community/cli-platform-android". The version that showed up today is 2.8.2 as opposed to 2.7.0 for yesterday's project.
I used:
npm install @react-native-community/[email protected]
This is not a optimal solution, but it will get you going.
Kill the automatically popped up metro bundler command prompt
Kill the command terminal which is running react-native run-android
Now Run react-native start
This will start your js server
In new command prompt window run react-native run-android
The app came up in 5 mins in an emulator.