A ๐ณ docker image for building โ React Native Apps (Android only)
- Open JDK 8
- Gradle v3.3
- Android SDK 23, 25 & 26
- Android Build Tools 23.0.1, 25.0.2, 26.0.1
- Android Tools (tools, platform-tools, extras)
- Google Extras
# The below will run the container and open up a bash session in side the container
$ docker run --rm -it -v /path/to/my/react-native-app:/app jaydp17/react-native-android:latest bash
# cd into the project
$ cd /app
# install npm modules
$ yarn
# Now cd into the android folder
$ cd android
# build the app
$ ./gradlew assembleRelease
Once the build is successful, you can find the apk in app/build/outputs/apk/
directory.