LoginSignup
0
0

expo app がつながらなくなった

Posted at

事象

expo app がつながらなくなった

原因

制限的なネットワーク条件 (公衆 Wi-Fi に一般的)、ファイアウォール (Windows ユーザーに一般的)、またはエミュレータの設定ミスにより、lan/localhost 経由でリモート デバイスを開発サーバーに接続することが困難になる場合があります。

ネットワーク条件によるものらしい。恐らくルーターの位置を変えた際に、設定もおかしくなってしまった模様。多分初期化したせい。

解決策

トンネリングという方法を用いて、プロキシ URL を介して開発サーバーに接続する。

  1. @expo/ngrokのインストール
    npm i -g @expo/ngrok
    
  2. トンネルURLから開発サーバを起動
    npx expo start --tunnel
    

参考

0
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
0
0