Sign inSign up

bahrimekki/react_native

By bahrimekki

•Updated over 2 years ago

docker image for run react native app

Image
0

255

bahrimekki/react_native repository overview

⁠Versions:

  • java --version : -- openjdk 17.0.10 2024-01-16 -- OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1) -- OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)
  • node --version : v18.19.1
  • npm --version : 10.2.4

⁠dependencies :

android studio installed in your PC

⁠RUN:

docker run --name react_native -v .:/app -v ${HOME}/Android/Sdk:/sdk bahrimekki/react_native

⁠Lance Container

docker start react_native

ip_phone="ip address of your phone"

docker exec erwinitwo bash -c "adb devices && adb connect ${ip_phone}:5555 && adb devices && adb -s ${ip_phone}:5555 reverse tcp:8081 tcp:8081"

docker exec erwinitwo bash -c "cd /app/ && npm start -- --port=8081"

Tag summary

Content type

Image

Digest

sha256:2d7260b2f…

Size

423.1 MB

Last updated

over 2 years ago

docker pull bahrimekki/react_native