TypeError: Network request failed

When using react native to make a network request, such an error type error is reported: network request failed

When checking your own code, you can set an Xcode to get through

The specific methods are as follows:

1. Open your project with Xcode and find the info tab

2. Find the app transport security settings and add allow arbitrary loads with the type of Boolean, and set the value to yes

3. Restart the project completed

Data obtained successfully

Similar Posts: