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
- Generate the bundle file for iOS.
npx react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'
- Launch Xcode and open the workspace for your app.
- Follow these steps to generate the
.app
file.
- Validate your
.app
file using a simulator.
## Exporting an Android emulator build from Reactive Native
- Create an
assets
folder underandroid/app/src/main/
if necessary.
mkdir android/app/src/main/assets
- 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
- Go to the
android
folder.
cd android
- Build the
.apk
file with Gradle.
./gradlew assembleDebug
- You can find the resulting
.apk
fileandroid/appbuild/outputs/apk/debug/app-debug.apk
. - Validate your
.apk
file using an emulator.
Updated about 1 month ago