[react native] Error loading page

如上图显示的错误,解决方法如下:

在react native ios项目的info.plist文件中,新增一个属性。

  1. 在Info.plist中添加NSAppTransportSecurity类型Dictionary。

  2. 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

  3. OK!
posted @ 2016-08-17 16:34  Evai  阅读(657)  评论(0)    收藏  举报