React Native app variants example

FruitApp

The missing guide to React Native app variants

Android end result

iOS end result

How to

Install dependencies

# Install JS dependencies
npm install

# Install iOS pod dependencies
cd ios && pod install && cd ..

Running different Android app variants

# Apple-QA-debug build
npm run run:android:apple:qa

# Apple-Prod-debug build
npm run run:android:apple:prod

# Banana-QA-debug build
npm run run:android:banana:qa

# Banana-Prod-debug build
npm run run:android:banana:prod

Running different iOS app variants

# Apple-QA-debug build
npm run run:ios:apple:qa

# Apple-Prod-debug build
npm run run:ios:apple:prod

# Banana-QA-debug build
npm run run:ios:banana:qa

# Banana-Prod-debug build
npm run run:ios:banana:prod

GitHub

View Github