React Native 运行出现 Could not connect to development server 解决方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了React Native 运行出现 Could not connect to development server 解决方法相关的知识,希望对你有一定的参考价值。

最近在研究React Native ,刚搭建完环境之后,若运行ios模拟器出现以下界面:技术分享

技术分享技术分享

 

解决方式是:

(1)终端cd到当前项目 然后npm start

(2)所有终端关闭,直接xcode run  ,ios这块xcode运行  server终端会自己打开的。

以上是关于React Native 运行出现 Could not connect to development server 解决方法的主要内容,如果未能解决你的问题,请参考以下文章