I\'m trying to do the react native \'hello world\', and I\'m using usb debugging on my android.
I ran react-native run-android
, then react-native sta
adb reverse tcp:8081 tcp:8081
Only works for android 5.0 + for running app on devices with android versions lesser than 5.0 hit following command after npm start
is done in Terminal (in app directory folder).
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
now run the app, it will work. Only drawback is that every time you make a change you need to fire the command again and run the app again.