329
ScrollView Animation Events (e.g. onScrollAnimationEnd)
wethestill
Here is my ScrollView:
<ScrollView
ref={ 'scroll' }
horizontal={ true }
onScroll={ this.onScroll }
showsHorizontalScrollIndicator={ false }
onTouchStart={ () => console.log( 'touch start' ) }
onTouchMove={ () => console.log( 'touch move' ) }
onTouchEnd={ () => console.log( 'touch end' ) }
onScrollBeginDrag={ () => console.log( 'scroll begin' ) }
onScrollEndDrag={ () => console.log( 'scroll end' ) }
onMomentumScrollBegin={ () => console.log( 'momentum begin' ) }
onMomentumScrollEnd={ () => console.log( 'momentum end' ) }
onStartShouldSetResponder={ () => console.log( 'on start' ) }
onStartShouldSetResponderCapture={ () => console.log( 'on start capture' ) }
onScrollShouldSetResponder={ () => console.log( 'on scroll' ) }
onResponderGrant={ () => console.log( 'granted' ) }
onResponderTerminationRequest={ () => console.log( 'term req' ) }
onResponderTerminate={ () => console.log( 'term' ) }
onResponderRelease={ () => console.log( 'release' ) }
onResponderReject={ () => console.log( 'reject' ) }
onScrollAnimationEnd={ () => console.log( 'anim end' ) }
scrollEventThrottle={ 16 }
contentContainerStyle={ styles.container }>
As it is only touch start, touch move, and occasionally touch end get fired.
I really need something like onScrollAnimationEnd which is currently iOS only
Activity
Newest
Oldest
Tyler Slater
Is this different from onMomentumScrollBegin/onMomentumScrollEnd?
bd-arc
onScrollAnimationEnd
has been removed by this commit, whereas we would need it on both platforms...wethestill
With the latest release (0.18-rc) support for onScrollBegin/EndDrag and onMomentumScrollBegin/End was added to Android which covered my use case so I would consider this product pain fixed! Thanks to the RN team for continually awesome work!