title: React Native - FlatList make get request for each item in renderItems
body: <p>I want to make a <code>get</code> request for each item in my <code>renderItems()</code> so I make it like this:</p>
  
  <pre><code>renderItems({ item }) {
    axios.get(Utilities.url + "Symbol/" + item.Id).then(response =&gt; {
      let eachItem = response.data;
    });
  
    console.log(eachItem);
  
    return (
      &lt;View
        style={{
          flex: 1,
          justifyContent: "center",
          alignItems: "flex-end",
          alignSelf: "stretch",
          marginRight: 2
        }}
      &gt;
        &lt;Text
          style={{
            color: Colors.WHITE,
            fontSize: 16
          }}
        &gt;
          {eachItem.LVal18AFC}
        &lt;/Text&gt;
      &lt;/View&gt;
    );
  }
  </code></pre>
  
  <p>But I get the error for:</p>
  
  <blockquote>
    <p>ReferenceError: eachItem is not defined</p>
  </blockquote>
  
  <p>I tried to convert the <code>renderItems</code> to an <code>async</code> function and use <code>await</code> but I get another error!</p>
  
  <p>Any solution...?</p>
  
  <h2>UPDATE</h2>
  
  <p>I used <code>var eachItem = []</code> outside the axios' then function but now I'm getting: </p>
  
  <blockquote>
    <p>TypeError: Cannot read property 'LVal18AFC' of undefined! </p>
  </blockquote>