Skip to content

Instantly share code, notes, and snippets.

@thanhzusu
Created September 11, 2017 07:06
Show Gist options
  • Save thanhzusu/3b249449462ca1b571185fc511061d4c to your computer and use it in GitHub Desktop.
Save thanhzusu/3b249449462ca1b571185fc511061d4c to your computer and use it in GitHub Desktop.
React Native common CLI
- iOS IPA:
- bundle: react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
- archive: run achive under Product menu of Xcode
- Android APK:
- bundle: 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/
- signed APK files:
- cd android && ./gradlew assembleRelease && cd ..
- cd android && ./gradlew assembleReleaseStaging && cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment