title: react native Fetch Network request failed on android
body: <p>I'm trying to receive some simple json from mocky.</p>
  
  <p>React native fetch function:</p>
  
  <pre><code>getMemberDomainList = async (name) =&gt; {
    try {
      let response = await fetch('https://5c9cc9ed3be4e30014a7d287.mockapi.io/api/domain', {
        method: 'POST',
        headers: {
          Accept: 'application/json',
          'Content-Type': 'application/json',
        },
      });
      let responseJson = await response.json();
      return responseJson;
    } catch (error) {
      console.error(error);
    }
  }
  </code></pre>
  
  <p>I have tested the address in chrome on windows, it returns the expected mock data. But when the function is called on my android phone I get this error
  <a href="https://i.stack.imgur.com/41GcX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/41GcX.png" alt="enter image description here"></a></p>
  
  <p>Error from remote debugger</p>
  
  <pre><code>...\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:2348 TypeError: Network request failed
      at XMLHttpRequest.xhr.onerror (...\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:4337)
      at XMLHttpRequest.dispatchEvent (...\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:10760)
      at XMLHttpRequest.setReadyState (...\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:10511)
      at XMLHttpRequest.__didCompleteResponse (...\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:10343)
      at ...\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:10449
      at RCTDeviceEventEmitter.emit (...\Libraries\Components\DrawerAndroid\DrawerLayoutAndroid.android.js:11)
      at MessageQueue.__callFunction (...\Libraries\ART\ReactNativeART.js:362)
      at blob:http://localhost:8081/79251787-d190-4650-8040-23d091c08738:2334
      at MessageQueue.__guard (...\Libraries\ART\ReactNativeART.js:312)
      at MessageQueue.callFunctionReturnFlushedQueue (...\Libraries\ART\ReactNativeART.js:139)
  </code></pre>
  
  <p>I'm also running a WebView in my app, which is pointing to a web url, it loads perfectly so I am sure that the phone has internet permission and access etc.</p>