React-Native: Get current page in FlatList when using pagingEnabled : <p>I have a FlastList that looks like this:</p>

<pre><code>&lt;FlatList
     pagingEnabled={true}
     horizontal={true}
     showsHorizontalScrollIndicator={false}
     data={[ {key:"A"}, {key:"B"} ]}
     renderItem={ ({item, index}) =&gt; &lt;MyComponent /&gt; }
 /&gt;
</code></pre>

<p>I have the width of the component set so that only one page shows up on screen at a time. How do I determine what the current page is (or alternatively, the current component being shown)?</p>
