LoginSignup
7
0

More than 3 years have passed since last update.

【React Native】Android emulatorで 'localhost' を参照しない

Last updated at Posted at 2018-08-20

何が起きたか

Android emulator起動時に、debugモードを起動すると、
http://10.0.2.2:8081/に接続されてしまい、正常に動作しない。

想定値はhttp://localhost:8081/だが、手動でアクセスしてもうまく動かない

解決法

Cmd + M => Debug mode
'Debug server host & port for device'にてlocalhost:8081を設定する

image.png
https://github.com/facebook/react-native/issues/17910#issuecomment-389789831

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