title: How to solve 'TypeError: Network request failed' in React Native?
body: <p><strong>Environment</strong></p>
  <p>I'm developing a mobile app with React Native and Expo.</p>
  <p>Also, developing api with Laravel that is in my local environment. (http://localhost:8000/)</p>
  <p>This app is working on Expo client app.</p>
  <p><strong>What I'm trying to do</strong></p>
  <p>I wanna get datas from api.</p>
  <p><strong>Code</strong></p>
  <p>App.js</p>
  <pre class="lang-js prettyprint-override"><code>componentDidMount() {
    return fetch('http://localhost:8000/api/test')
      .then((response) =&gt; response.json())
      .then((responseJson) =&gt; {
        console.log(responseJson);
      })
      .catch((error) =&gt; {
        console.error(error);
      });
  }
  </code></pre>
  <p><strong>Error</strong></p>
  <blockquote>
  <p>TypeError: Network request failed</p>
  </blockquote>
  <p><strong>Expo version</strong></p>
  <p>3.22.3</p>
  <p>I would appreciate it if you could give me any advice.</p>