add scroll handlers to ScrollView (#13237)

This commit is contained in:
Danny Cochran
2016-12-24 19:42:14 +09:00
committed by Masahiro Wakame
parent 28f528ffab
commit 383fca5ed7
+11 -1
View File
@@ -5576,7 +5576,17 @@ declare module "react" {
* Fires at most once per frame during scrolling.
* The frequency of the events can be contolled using the scrollEventThrottle prop.
*/
onScroll?: (event?: { nativeEvent: NativeScrollEvent }) => void
onScroll?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
/**
* Fires if a user initiates a scroll gesture.
*/
onScrollBeginDrag?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
/**
* Fires when a user has finished scrolling.
*/
onScrollEndDrag?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
/**
* When true the scroll view stops on multiples of the scroll view's size