LoginSignup
1
0

More than 3 years have passed since last update.

dockerでcreate-react-native-appをやる時に詰まったこと

Posted at

qr imageの読み込みの後、接続できない

IMG_0007.PNG

error message
There was a problem loading the requested app. It looks like you may be using a LAN URL. Make sure your device is on the same network as the server or try using a tunnel.

解決策

expo start --tunnel

参考

--tunnel # ネットワークの外部から接続できます。

失敗

普通にexpo start すると、docker containerのipアドレスに接続するためのqr imageが開きます。
docker-compose.ymlに

ports:
       - 19000:19000
       - 19001:19001
       - 19002:19002

と設定したり、

network_mode: "host"

を設定して、ipアドレスを固定にして、portも同じにしてみたのですがうまく接続できませんでした。

...ブラーバいいよ、ブラーバ

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0