diff --git a/releases/next/docs/network.html b/releases/next/docs/network.html index a0a2bb912f3..db4550aa0bd 100644 --- a/releases/next/docs/network.html +++ b/releases/next/docs/network.html @@ -25,7 +25,7 @@ } catch(error) { console.error(error); } - }

Don't forget to catch any errors that may be thrown by fetch, otherwise they will be dropped silently.

Using Other Networking Libraries #

The XMLHttpRequest API is built in to React Native. This means that you can use third party libraries such as frisbee or axios that depend on it, or you can use the XMLHttpRequest API directly if you prefer.

var request = new XMLHttpRequest(); + }

Don't forget to catch any errors that may be thrown by fetch, otherwise they will be dropped silently.

By default, iOS will block any request that's not encrypted using SSL. If you need to fetch from a cleartext URL (one that begins with http) you will first need to add an App Transport Security exception. If you know ahead of time what domains you will need access to, it is more secure to add exceptions just for those domains; if the domains are not known until runtime you can disable ATS completely. See Apple's documentation for more information.

Using Other Networking Libraries #

The XMLHttpRequest API is built in to React Native. This means that you can use third party libraries such as frisbee or axios that depend on it, or you can use the XMLHttpRequest API directly if you prefer.

var request = new XMLHttpRequest(); request.onreadystatechange = (e) => { if (request.readyState !== 4) { return;