React Native (Non-Expo)

A step-by-step guide to exporting a Waldo-compatible build of your Reactive Native app.

Exporting an iOS simulator build from React Native

  1. Generate the bundle file for iOS.
npx react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'
  1. Launch Xcode and open the workspace for your app.

  1. Follow these steps to generate the .app file.

  1. Validate your .app file using a simulator.

## Exporting an Android emulator build from Reactive Native

  1. Create an assets folder under android/app/src/main/ if necessary.
mkdir android/app/src/main/assets
  1. Generate the bundle file for Android.
npx 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
  1. Go to the android folder.
cd android
  1. Build the .apk file with Gradle.
./gradlew assembleDebug
  1. You can find the resulting .apk file android/appbuild/outputs/apk/debug/app-debug.apk.
  2. Validate your .apk file using an emulator.