title: React native Wordpress API not fetching posts
body: <p>Hello i recently just started learning react native. 
  I am now trying to fetch data from a wordpress api with the following code with this exact api address but nothing loads up. </p>
  
  <pre><code>    import React from 'react';
      import { FlatList, ActivityIndicator, Text, View  } from 'react-native';
  
      export default class FetchExample extends React.Component {
  
      constructor() {
      super();
      this.state = {
        posts: []
      }
      }
      componentDidMount() {
      let dataURL = "https://click9ja.com/wp-json/wp/v2/posts";
      fetch(dataURL)
        .then(response =&gt; response.json())
        .then(response =&gt; {
          this.setState({
            posts: response
          })
        })
    }
      render() {
      let posts = this.state.posts.map((post, index) =&gt; {
        return
        &lt;View key={index}&gt;
        &lt;Text&gt;Title: {post.title.rendered}&lt;/Text&gt;
        &lt;/View&gt;
      });
     return (
        &lt;View&gt;
          &lt;Text&gt;List Of Posts&lt;/Text&gt;
          &lt;Text&gt;{posts}&lt;/Text&gt;
        &lt;/View&gt;
       )
    }
  }
  </code></pre>
  
  <p>Any advice will be appreciated.</p>