React Native: Possible unhandled promise rejection

后端 未结 6 1740
再見小時候
再見小時候 2020-11-28 07:32

I\'m getting the following error: Possible unhandled promise rejection (id:0: Network request failed

Here\'s the promise code, I don\'t see what\'s wro

6条回答
  •  情深已故
    2020-11-28 08:33

    According to this post, you should enable it in XCode.

    1. Click on your project in the Project Navigator
    2. Open the Info tab
    3. Click on the down arrow left to the "App Transport Security Settings"
    4. Right click on "App Transport Security Settings" and select Add Row
    5. For created row set the key “Allow Arbitrary Loads“, type to boolean and value to YES.

提交回复
热议问题