Skip to content

Instantly share code, notes, and snippets.

@toropanov
Created April 1, 2017 08:51
Show Gist options
  • Save toropanov/fc84cbfa5dd728b9daf506ceadfc34ed to your computer and use it in GitHub Desktop.
Save toropanov/fc84cbfa5dd728b9daf506ceadfc34ed to your computer and use it in GitHub Desktop.
Generate APK (UNSIGNED) (Android)
Create the folder assets in android/app/src/main folder.
Run curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
Run 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/
Run cd android && ./gradlew assembleRelease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment