@xxsnakerxx/react-native-scripts

Helpful scripts for React Native projects

Usage no npm install needed!

<script type="module">
  import xxsnakerxxReactNativeScripts from 'https://cdn.skypack.dev/@xxsnakerxx/react-native-scripts';
</script>

README

react-native-scripts

Helpful scripts for React Native projects

npm (scoped)  npm  NpmLicense

Installation

yarn add --dev @xxsnakerxx/react-native-scripts

rns-build-android

Usage: yarn rns-build-android [options]

Options:
  -t, --type       gradle buildType  [string] [required]
  -b, --bundle     build bundle instead of APK  [boolean] [default: false]
  -u, --upload     upload to google play  [boolean] [default: false]
  -s, --sourcemap  build sourcemap  [boolean] [default: true]
  --apkName        apk file name  [string] [default: package name]
  --apkSuffix      apk file suffix  [string] [default: package version]
  --version        Show version number  [boolean]
  --help           Show help  [boolean]

rns-build-ios

Usage: yarn rns-build-ios [options]

Options:
  --teamId             [string] [required]
  --scheme             [string] [required]
  -c, --configuration  [string] [required]
  -u, --upload         upload to app store  [boolean] [default: false]
  --altoolUser         apple ID, required for uploading  [string]
  --altoolPass         app specific password (appleid.apple.com -> Security -> Generate Password), required for uploading  [string]
  --icloudEnv          value for iCloudContainerEnvironment key  [string] [default: "Production"]
  -s, --sourcemap      build sourcemap  [boolean] [default: true]
  --ipaName            ipa file name  [string] [default: package name]
  --ipaSuffix          ipa file suffix  [string] [default: package version]
  --version            Show version number  [boolean]
  --help               Show help  [boolean]

rns-codepush

Usage: yarn rns-codepush [options] [code-push cli options]
       run "code-push release-react --help" to see other available code-push options

Options:
  --app            app name  [string] [required]
  -e, --env  [string] [required]
  -p, --platform  [string] [choices: "ios", "android", ""] [default: both]
  -s, --sourcemap  build sourcemap  [boolean] [default: true]
  --version        Show version number  [boolean]
  --help           Show help  [boolean]

rns-build-sourcemap

Usage: yarn rns-build-sourcemap [options]

Options:
  -f, --folder  [string] [default: "sourcemaps"]
  -p, --platform  [string] [required] [choices: "ios", "android"]
  -e, --env  [string] [required]
  --version       Show version number  [boolean]
  --help          Show help  [boolean]

find-source

Usage: yarn rns-find-source [options]

Options:
  -p, --path  path to sourcemap  [string] [required]
  -l, --line  [string] [default: "0:0"]
  --version   Show version number  [boolean]
  --help      Show help  [boolean]

link-assets

Usage: yarn rns-link-assets [options]

Options:
  --version  Show version number  [boolean]
  --help     Show help  [boolean]

PRs are welcome