TODO: This sort of setup & configuration stuff should be pushed over to a Docker container, see Using Docker for Android Testing

history

react-native init AndroidExample
cd AndroidExample
react-native run-android


  554  vim ./node_modules/react-native/react.gradle
  555  vim package.json
  556  npm run android-linux
  557  ls android/app/src
  558  ls android/app/src/main
  559  tree android/app/src/main
 

Update package.json to include

{
  "start": "node node_modules/react-native/local-cli/cli.js start",
  "test": "jest",
  "android-linux": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android"
}

Which will sort the bundle nonsense out, but you make need to do a mkdir android/app/src/main/assets before your npm run android-linux