I am trying to run a react-native app I have created. I am getting the below screen when I run it initially in my phone.
I tried running the \"react-native
If you are running Android 5.0+, please run the following in a command prompt to connect to the development server:
adb reverse tcp:8081 tcp:8081
Then, select 'Reload JS' from the Developer menu by shaking the device.
If the above steps are not working or you are running a lower version of Android, please try the following to connect via Wi-Fi:
Shake your phone to get "Dev Settings" > Debug server host & port for device > "your IP Address:8081" eg. 192.XXX.XX.xx:8081"
It solved my issue. :)
You must have download index.android.bundle file in your asset folder.
Open your project directory and shift key+ right click, open command prompt. Then paste this command :
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
you are using corrupted jsbundle file. Recreate the jsbundle using
react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output music.jsbundle
Kill the app on your device, then open up terminal and run the below command
react-native start
Then open the app again from your device and it will start working.
If you are using an Android device via USB and have unplugged it, you may have to first run
adb reverse tcp:8081 tcp:8081
Hope it will help you.