title: Continue to get "Unhandled promise rejection: TypeError: Network request failed" when using fetch()
body: <p>I'm trying to fetch data from a text file in my project and print it out as a test, but I continue to get the same error.</p>
  <p>Below is my code:</p>
  <pre><code>import React from 'react';
  import { Stylesheet, View, Text, Button } from 'react-native';
  import { beginQuiz } from './helperfunctions';
  import myText from './sampleFile.js';
  
  export const QuestionScreen = ({ navigation, route }) =&gt; {
      fetch(myText)
                  .then(response =&gt; response.text())
                  .then(data =&gt; console.log(data))
                  .catch(function(error) {
                    console.log('There has been an error');
                    throw error;
                  })
                  console.log('done');
      return (
          &lt;View&gt;
              &lt;Text&gt;This is the question screen&lt;/Text&gt;
              &lt;Button title='Sample Button'/&gt;
          &lt;/View&gt;
      )
    };
  </code></pre>
  <p>Here is the sampleFile.js:</p>
  <pre><code>var myText = 'This is a sample text file.'
  </code></pre>