
fetch在ReactNative中可能会报错如下:Possible unhandled promise rejection (id:0: Network request failed
According to this post, you should enable it in XCode.
- Click on your project in the Project Navigator
- Open the Info tab
- Click on the down arrow left to the “App Transport Security Settings”
- Right click on “App Transport Security Settings” and select Add Row
- For created row set the key “Allow Arbitrary Loads“, type to boolean and value to YES.





近期评论