Tag Archives: React Native: Possible unhandled promise rejection request fail

React Native: Possible unhandled promise rejection request fail

Detailed map traversal, teach you to master the complex gremlin query debugging method>>>

It’s really a lot of pits. Step on them slowly

When using the fetch mode when using the reacg native network request, you will encounter this error:

React Native: Possible unhandled promise rejection request fail

The request is wrong and cannot be processed

what happened?As like as two peas in the code, the same thing is wrong with the official. Why?p>

After more than an hour’s search and exploration, I finally understand that when I use the virtual simulator in MAC, I need to start the function of network request: specific implementation method:

1. Open your Xcode and use it to open your project

2. Click the info option

3. Find “app transport security settings” and click open

4. Click the + sign next to “app transport security settings”

5. Create “allow arbitrary loads”, and select Yes for the following type

Then restart the project and it’s done