dev server returned error code 403 react native

前端 未结 6 1121
长情又很酷
长情又很酷 2020-12-07 01:24

Followed the steps here to try react-native android on a windows box.

  1. On a separate prompt I executed react-native start which is running fin
6条回答
  •  鱼传尺愫
    2020-12-07 01:57

    1. Press cmd + M (Ctrl + M for windows) to open your dev menu for the emulator (Please make sure your react-native app is open in the active window of the android emulator before using this command)
    2. Click Dev Settings
    3. Under Debugging select Debug server host & port for device
    4. Enter the correct url and port for your application in your case 10.0.2.2:8088

    Once you do that you can reload your application and it should work.

提交回复
热议问题