react native mac 下真机调试 Could not connect to development server.

来源:互联网 发布:极限网络代挂 编辑:程序博客网 时间:2024/05/16 07:44

可能原因  
1.localhost 没改 
2.http->https App Transport Security Settings 
3.程目录npm start 

  1. !–mac 上是这样的: 
    brew uninstall –force watchman 
    brew install –HEAD watchman 
    重新安装watchman就可以了–!

生成 main.jsBundle 
curl http://localhost:8081/index.ios.bundle -o main.jsbundle

另 
开源提示软件 
https://github.com/virtoolswebplayer/ReactNative-LiveTemplate

react native reload 没有变化由于Watcher在windows花费太长时间,增加超时时间,修改变量MAX_WAIT_TIME



阅读全文
0 0
原创粉丝点击