title: Pause video in flatlist when out of view
body: <p>I have a flatlist showing videos. I want that when a video goes out of the view it should be paused. I am maintaining the pause state in each of the <code>Posts</code> component.</p>
  
  <pre><code>class Posts extends React.PureComponent {
  
  constructor() {
   super()
   this.state = {
     pause: true,
   }
  
   return(){
    &lt;Video
      pause={this.state.pause}
      //other props
    /&gt;
   }
  
  }
  </code></pre>
  
  <p>I am using <code>react-native-video</code>.</p>
  
  <p>I have tried using <code>onViewableItemsChanged</code> prop of <code>Flatlist</code> but it doesn't change the state.</p>
  
  <p>I tried <a href="https://github.com/react-native-community/react-native-video/issues/908" rel="noreferrer">this</a> .
  But it doesn't seem to work for me.</p>
  
  <p>How should I proceed ?</p>