Last active
November 14, 2018 04:27
-
-
Save tenkunkyab/d39b4b2514d69a9b35ae98b01fced79c to your computer and use it in GitHub Desktop.
Building React-Native Android Projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| cd android/ | |
| ./gradlew assembleDebug | |
| * if this errors out temporary fix | |
| ** place `android.enableAapt2=false` in `gradle.properties` # no longer required | |
| ./gradlew assembleRelease | |
| * generated apk located in `android/app/build/outputs/apk | |
| ** The builds are unsigned so you'd have to change the security settings on that phone. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment