react-native release code example

Example 1: react-native android build apk

cd android
./gradlew assembleRelease

Example 2: react-native make android apk

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/

Example 3: react native version

{  "name": "AwesomeProject",  "version": "0.0.1",  "scripts": {    "start": "node node_modules/react-native/local-cli/cli.js start",+   "postversion": "react-native-version"  }}

Example 4: react native version

$ npm install react-native-version --save-dev# or $ yarn add react-native-version --dev

Tags:

Misc Example