title: React Native - Show View while Scrolling in Flatlist
body: <p>I need to <strong>SHOW</strong> a view when scroll is started and <strong>HIDE</strong> a view when scroll is stopped. </p>
  
  <p>To detect the scroll movement, there is two ways: </p>
  
  <ol>
  <li><p>Called when the user begins to drag the scroll view.</p>
  
  <pre><code>onScrollBeginDrag={this.showView}
  onScrollEndDrag={this.hideView}
  </code></pre></li>
  <li><p>Called when the momentum scroll starts and Ends</p>
  
  <pre><code>onMomentumScrollBegin={this.showView}
  onMomentumScrollEnd={this.hideView}
  </code></pre></li>
  </ol>
  
  <p><strong>Exptected Behaviour:</strong></p>
  
  <p>If continues scroll is happening, it should not hide the view even <code>onScrollEndDrag</code> is called and still show the view until <code>onMomentumScrollEnd</code>.</p>
  
  <p>If continues scroll is not active, its should hide when <code>onScrollEndDrag</code> called</p>
  
  <p><strong>Actual Behaviour:</strong></p>
  
  <p>If continues scroll is happening, its hide the view when <code>onScrollEndDrag</code> is called and shows the view again until <code>onMomentumScrollEnd</code>. So in between view is disappeared and then its appears when drag released.</p>