title: React Native - fetch not working on iOS simulator (didn't check other)
body: <p>This looks like the most common question asked on the SO for React. I tried everything given in various questions/answers. Either it is outdated, or not working.</p>
  <ol>
  <li>I created a fresh project of react native (with everything latest/up to date).</li>
  <li>I simple create a simple component which has a REST call</li>
  <li>This REST call would never complete and go to next step of promise.</li>
  </ol>
  <p>Here is the code</p>
  <pre><code>const Home = () =&gt; {
  
    useEffect(() =&gt; {
      console.log('start');
      fetch('https://jsonplaceholder.typicode.com/todos/1', {
        method: 'GET',
        headers: {
          Accept: 'application/json',
          'Content-Type': 'application/json'
        }
       }).then((response) =&gt; response.json()).then((data) =&gt; {
         console.log('result: ', data);
       }).catch((err) =&gt; {
         console.log('failed', err);
       }).finally(() =&gt; {
         console.log('Any hope?');
       });
    });
  
    return (&lt;Text&gt;Lets log the API's for now&lt;/Text&gt;);
  };
  </code></pre>
  <p>The above code only logs <code>start</code> in the cli or debug window, nothing else, not even logs written in finally.</p>
  <p><em>I'm using xcode 12.0 (12A7209), react 16.13.1, @babel/core 7.12.10.</em></p>
  <p>It is not just with fetch, I have <strong>already tried</strong> using other libs for http in react native like <strong>axios</strong>, nothing really helps. They all tend to behave the same.</p>
  <p>I already checked browser by opening a website in the <strong>simulator</strong>, it has <strong>working internet</strong>. I tried replacing API, available free online.</p>
  <p>BTW this is bare project. I tried similar example with expo, it happens to behave the same.</p>
  <p>Thanks</p>