[react native] Error loading page

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

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

[react native] Error loading page

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

  2. NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES[react native] Error loading page

  3. OK!

相关文章: