title: React-native Flatlist auto scroll
body: <p>I have a Flat-list in react native which has items that expand &amp; collapse (Just like dropdown), So whenever an item is clicked to expand, If the items content is overflowing in the screen.I want to scroll the item so that its content is fully visible.
  How can I implement that?</p>
  <ul>
  <li><strong>scrollToIndex</strong> won’t work in this case &amp; for <strong>scrollToOffset</strong> how can i determine the position of the clicked item on screen?</li>
  </ul>