[react native] Error loading page

如上圖顯示的錯誤,解決方法如下: 在react native ios項目的info.plist文件中,新增一個屬性。 在Info.plist中添加NSAppTransportSecurity類型Dictionary。 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads類型Boolean,值設爲YES OK!
相關文章
相關標籤/搜索