To bundle JS file into your apk while having your server running (react-native start
) download bundle into assets directory of your app:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
With the next release (0.12) we’ll fix react-native bundle
command to work with android projects as expected.