dev server returned error code 403 react native

前端 未结 6 1114
长情又很酷
长情又很酷 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 02:06

    This issue might occur because of the blockage of default port. In my case, I was able to fix it after executing following steps-

    1. Start dev server on a new port:- react-native start --port=8088
    2. Open developer menu by vibrating on actual connected device or pressing 'Ctrl + M' on emulator.
    3. Select Dev Settings
    4. Under Debugging select Debug server host & port for device
    5. Enter the url and port for your application as '10.0.2.2:8088'

提交回复
热议问题