如上图显示的错误,解决方法如下:
在react native ios项目的info.plist文件中,新增一个属性。
在Info.plist中添加
NSAppTransportSecurity
类型Dictionary
。在
NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
类型Boolean
,值设为YES
- OK!
如上图显示的错误,解决方法如下:
在react native ios项目的info.plist文件中,新增一个属性。
在Info.plist中添加NSAppTransportSecurity
类型Dictionary
。
在NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
类型Boolean
,值设为YES