title: fetch() not returning the right JSON
body: <p>I'm trying to create a feed using React Native. I get the correct data with Ajax, but in React Native, I get something completely different.</p>
  
  <p><a href="https://i.stack.imgur.com/BPVk3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BPVk3.png" alt="enter image description here"></a></p>
  
  <p>Here's what the URL returns when you go to it in your browser</p>
  
  <p><a href="https://i.stack.imgur.com/5G9Uc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5G9Uc.png" alt="enter image description here"></a></p>
  
  <p>The PHP script has <code>header('Content-Type: application/json');</code> at the top.</p>
  
  <p>Here is my function to get the JSON.</p>
  
  <pre><code>getPostData()
  {
      fetch('https://url.com/api/globalfeed.php?skip=0' + '&amp;key=' + this.state.user,
      {
          headers:
          {
              Accept: 'application/json',
              'Content-Type': 'application/json',
          },
      })
      .then((response) =&gt;
      {
          console.log(response)
      });
  }
  </code></pre>
  
  <p>Here is my PHP</p>
  
  <pre><code>header('Content-Type: application/json');
  // Compile all the data for the post to return it.
          array_push($toReturn, [
              'PostID' =&gt; $feedPost['PostID'],
              'PostAuthor' =&gt; $feedPost['PostAuthor'],
              'PostAuthorName' =&gt; $poster-&gt;data['FirstName'] . ' ' . $poster-&gt;data['LastName'],
              'PostProfilePic' =&gt; $poster-&gt;data['ProfilePicture'],
              'PostText' =&gt; embedEmojis($feedPost['PostText']),
              'PostIsImage' =&gt; $feedPost['PostIsImage'],
              'PostImageURL' =&gt; $feedPost['PostImageURL'],
              'PostTime' =&gt; $feedPost['PostTime'],
              'PostTimeFormatted' =&gt; timeElapsed('@'.$feedPost['PostTime']),
              'PostLiked' =&gt; $liked,
              'PostLikes' =&gt; $feedPost['PostLikes'],
              'PostComments' =&gt; $cAr,
              'Verified' =&gt; $poster-&gt;data['Verified'],
              'Owned' =&gt; $owned
          ]);
  
      die(json_encode($toReturn));
  </code></pre>