React Native Docker is a docker image that helps you to compile and run your react native project in any environment.
- Helps you to build easily
- Updated regularly
- Published on Docker Hub
Download annd install Docker in your machine. Docker Mac OS | Docker Windows
Installation successful? Great! Now lets download the image and run
Open your favorite Terminal and run these commands.
Step 1:
$ git clone git@github.com:imjaahh/react-native-docker.gitStep 2:
$ cd react-native-docker
$ docker build ./Step 3 (optional): Accept all licenses, it might cause some build issue while the gradle dependencies are being downloaded
$ yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;24.0.3"Step 4:
$ cd [your react native project]Step 5:
$ docker run --rm -ti -v `pwd`:/app imjaahh/react-native-docker bashStep 6:
$ cd appStep 7:
$ cd android && ./gradlew assembleReleaseAPK file will be in /android/app/build/outputs/apk/release