I'm on react native 0.55.4, basically i had to bundle manually:
react-native bundle --dev false --platform android --entry-file index.js --bundle-
output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-
dest ./android/app/build/intermediates/res/merged/debug
Then connect your device via usb, enable usb debugging. Verify the connected device with adb devices
.
Lastly run react-native run-android
which will install the debug apk on your phone and you can run it fine with the dev server
Note:
index.js
gradlew assembleRelease
only generates the release-unsigned apks which cannot be installed