![](/style/images/good.png)
4
![](/style/images/bad.png)
React Native app variants example
source link: https://reactnativeexample.com/react-native-app-variants-example/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK