[react native] Error loading page

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

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

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

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

  3. OK!
原文地址:https://www.cnblogs.com/evai/p/5780584.html