title: React native: TypeError: Network Request Failed
body: <p>when I try to run the code below in chrome console it works and I get alert in the browser but when I try to run the same code inside react native environment, I get an error instead: "<strong><em>TypeError: Network Request Failed</em></strong>".</p>
  
  <pre><code>makeRequest(){
      fetch('http://localhost:3000/')
      .then(response =&gt; response.json())
      .then(data =&gt; alert(data))
      .catch(e =&gt; alert(e));
  }
  
  
  render() {
       return(
           &lt;View style = {styles.main}&gt;
              {setTimeout(()=&gt;this.makeRequest(),1000);}
           &lt;/View&gt;
       )
  }
  </code></pre>