This article will guide you to build your Android apps with Mobile source code
- Supported Android versions: 8.0+
We recommend to use macOS system as a development environment because:
We assume that you have experiences in React Native project and how to build React Native mobile apps. Please following this Environment Setup guide to set up the development environment for React Native (RN) project
Folder packages: contains all main RN/Javascript code
Folder app: Contains entrypoint for each module section from folder `packages`. Do not change anything here, we got the script to handle these generated code
Folder android: Contains Java/Kotlin native code - mostly handle native things for Android app
Folder scripts: contains all utilities scripts
You can update our mobile configuration and assets for Android app in:
yarn react-native generate-bootsplash splash/splash.png --background-color=<your_background_color> --logo-width=100 --assets-path=assets |
Whenever you change the configuration files above, you need to re-run these steps again:
yarn install yarn android-config yarn reload |
Start React Native metro package manager
yarn start |
Run the following commands to start Android app on Android emulator (default basing on Android Studio config)
yarn android-run |
Build release app.apk for Android alternatively Gradle build
yarn android-build |
Build release app.bundle for Android alternatively Gradle bundle
yarn android-bundle |