title: Data is not rendering using Flatlist in react native
body: <p>I am fetching data from api and I am storing it in a state in a functional component
  if I am simply printing the data in a {data} it is showing all data in json format
  but it is not rendering using flatlist.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> 
  const PlantsBreedScreen = ({ navigation }) =&gt; {
  const [data, setData] = useState([]);
  
  useEffect(() =&gt; {
      fetchData();
  }, []);
  
  const fetchData = async() =&gt;
  {
  
      const request =  await axios.get('/obj/Category');
      setData(JSON.stringify(request.data.response.results));
      console.log(request.data.response.results);
      return request;
  }
  
  const Item = (props) =&gt; (
      &lt;View style={styles.item}&gt;
        &lt;Text style={styles.title}&gt;{props.title}&lt;/Text&gt;
      &lt;/View&gt;
    );
    
    const renderItem = ({ item }) =&gt; (
      &lt;Item cName={item.cName} /&gt;
    );
    
  
  return (
      &lt;SafeAreaView style={styles.container}&gt;
          &lt;FlatList
          data={data}
          renderItem={renderItem}
          keyExtractor={item =&gt; item._id}
         /&gt; 
      &lt;/SafeAreaView&gt;
  )
  }
      
      
  I am getting this data 
  
  [
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211075844x987594468971699600/AirPlant.png",
          "cName":"AirPlant",
          "Created Date":"2020-06-12T03:50:32.293Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:58.122Z",
          "_id":"1591933832293x740470401637297400",
          "_type":"custom.category"
      },
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211065995x923166783941526000/Aquatic.png",
          "cName":"Aquatic",
          "Created Date":"2020-06-12T03:50:54.814Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:48.282Z",
          "_id":"1591933854814x594601779376298400",
          "_type":"custom.category"
      },
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211055775x815245486081858600/CacSucc.png",
          "cName":"CacSucc",
          "Created Date":"2020-06-12T03:51:08.824Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:37.763Z",
          "_id":"1591933868824x824580506688475900",
          "_type":"custom.category"
      },
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211046766x525372817880738000/Carnie.png",
          "cName":"Carnie",
          "Created Date":"2020-06-12T03:51:48.497Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:28.878Z",
          "_id":"1591933908497x739290661511488500",
          "_type":"custom.category"
      },
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211038814x188848007836712300/Flowery.png",
          "cName":"Flowery",
          "Created Date":"2020-06-12T03:52:02.800Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:20.613Z",
          "_id":"1591933922800x240413248643147620",
          "_type":"custom.category"
      },
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211030148x445996690624532700/Leafy.png",
          "cName":"Leafy",
          "Created Date":"2020-06-12T03:52:14.162Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:11.914Z",
          "_id":"1591933934162x408228620159180000",
          "_type":"custom.category"
      },
      {
          "cIcon":"//s3.amazonaws.com/appforest_uf/f1593211021175x413587314607428300/Exotic.png",
          "cName":"Exotic",
          "Created Date":"2020-06-12T03:52:25.027Z",
          "Created By":"1589332566210x919673080739546800",
          "Modified Date":"2020-06-26T22:37:03.554Z",
          "_id":"1591933945027x914059867656276400",
          "_type":"custom.category"
      }
  ]</code></pre>
  </div>
  </div>
  </p>
  <p>But I am getting screen with only lines and css style is applied on it but no data is showing
  <a href="https://i.stack.imgur.com/dWkse.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dWkse.png" alt="enter image description here" /></a></p>
  <p>Please help me how to solve this or any suggestion or alternative to do it
  Thanks in advance</p>