Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoesuv/rn-build-environment
https://github.com/yoesuv/rn-build-environment
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yoesuv/rn-build-environment
- Owner: yoesuv
- Created: 2022-12-02T03:14:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T22:32:27.000Z (9 months ago)
- Last Synced: 2024-04-20T17:13:00.911Z (9 months ago)
- Language: Java
- Size: 1.43 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
## React Native Build Environment ##
Demonstrate build React Native app using flavor/scheme in Android & iOS.
How to run
```
npx react-native run-android --variant=devDebug
npx react-native run-android --variant=stagingDebug
npx react-native run-android --variant=productionDebugnpx react-native run-ios --scheme FlavorDevelopment --configuration DevelopmentDebug
npx react-native run-ios --scheme FlavorStaging --configuration StagingDebug
npx react-native run-ios --scheme FlavorProduction --configuration ProductionDebug
```#### Screenshot Android ####
| Flavor | Development | Staging | Production |
| :---: | :---: | :---: | :---: |
| ![](https://i.imgur.com/Y5qnoYs.png) | ![](https://i.imgur.com/eLVoch2.png) | ![](https://i.imgur.com/CP3Q0r8.png) | ![](https://i.imgur.com/rFac2AV.png) |#### Screenshot iOS ####
| Flavor | Development | Staging | Production |
| :---: | :---: | :---: | :---: |
| ![](https://images2.imgbox.com/98/0c/FvGFcQ4M_o.png) | ![](https://images2.imgbox.com/91/dc/BTKb2neI_o.png) | ![](https://images2.imgbox.com/e0/61/T7j9PHyu_o.png) | ![](https://images2.imgbox.com/3d/70/ybwKTfxd_o.png) |#### List Package ####
- [React Native Device Info](https://github.com/react-native-device-info/react-native-device-info)#### References ####
- [Logicwind](https://blog.logicwind.com/adding-multiple-target/)
- [Medium](https://medium.com/simform-engineering/how-to-set-up-different-environments-in-react-native-9f7902ebf282)