I need to SHOW a view when scroll is started and HIDE a view when scroll is stopped.
To detect the scroll movement, there is two ways:
Called when the user begins to drag the scroll view.
onScrollBeginDrag={this.showView} onScrollEndDrag={this.hideView}
Called when the momentum scroll starts and Ends
onMomentumScrollBegin={this.showView} onMomentumScrollEnd={this.hideView}
Exptected Behaviour:
If continues scroll is happening, it should not hide the view even onScrollEndDrag
is called and still show the view until onMomentumScrollEnd
.
If continues scroll is not active, its should hide when onScrollEndDrag
called
Actual Behaviour:
If continues scroll is happening, its hide the view when onScrollEndDrag
is called and shows the view again until onMomentumScrollEnd
. So in between view is disappeared and then its appears when drag released.