Skip to content

Instantly share code, notes, and snippets.

@GantMan
Created August 10, 2020 22:27
Show Gist options
  • Save GantMan/b99679d6257ab4ea2ac2453bda1c84b9 to your computer and use it in GitHub Desktop.
Save GantMan/b99679d6257ab4ea2ac2453bda1c84b9 to your computer and use it in GitHub Desktop.
create React Native bundles from yarn command
# Generate your Android production bundle (just code no assets)
$ yarn react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./index.android.bundle
# Generate your iOS production bundle (just code no assets)
$ yarn react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ./index.ios.bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment