React Native Docker Image, dynamic versioning you can changing versions.env
.
Supported real device testing only MacOS, Linux. Not tested on Windows. Correctly working emulator.
Used NodeJS correctly versioning NVM in docker image. When you projects switching, you can use nvm in container.
It does not require action. Please look How to Use
section.
cd ios
pod install
Start Metro Bundler react-native start
or npm run start
or yarn run start
Lastly open /ios/project.xcworkspace
, and run.
docker-compose --env-file ./versions.env up --build
docker-compose --env-file ./versions.env up
If you want created new project from scratch you can use in container react-native init
command.
Otherwise, you should these files copy to your into the project root.
- Install your project dependencies
yarn install
- When dependencies completed install, run this command only once.
sh permission.sh
If you get any error, never mind these that
- Run Metro Bundler
react-native start
- Run (new terminal)
react-native run android
Above steps should writing in container include yarn
You can entering docker exec
command to docker container.
If you want run command not entered container;
docker exec -it <container_id> /bin/bash -c "<command>"
docker exec -it f79d /bin/bash -c "react-native start"
- React Dev Tools Forwarding