From 383fca5ed7974a90c3f3af6425949cc442ec1cd5 Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Sat, 24 Dec 2016 02:42:14 -0800 Subject: [PATCH] add scroll handlers to ScrollView (#13237) --- react-native/index.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 195015b09e..0fb9c19550 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -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) => void + + /** + * Fires if a user initiates a scroll gesture. + */ + onScrollBeginDrag?: (event?: NativeSyntheticEvent) => void + + /** + * Fires when a user has finished scrolling. + */ + onScrollEndDrag?: (event?: NativeSyntheticEvent) => void /** * When true the scroll view stops on multiples of the scroll view's size