title: React Native - How to pass index in map function
body: <p>I have a map function to create a component repetitively and dynamically. Suppose it's like this:</p>
  
  <pre><code>renderBoxes() {
      return Array.map(data =&gt; this.myFunction(indexOfThisArray));
  } 
  </code></pre>
  
  <p>How can I pass the index of the array? So that the 'myFunction' function gets the index value everytime it is called. </p>