From e8088fd229eb49f1868eddbec06b73e4d55d816e Mon Sep 17 00:00:00 2001 From: Josh Hargreaves Date: Wed, 4 Jan 2017 17:07:44 +0000 Subject: [PATCH] Add missing onMomentum* properties to ScrollView. (#13732) Added missing definitions for onMomentumScrollBegin & onMomentumScrollEnd. --- react-native/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 57e670575e..3bb716d1db 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -5634,6 +5634,16 @@ declare module "react" { * Fires when a user has finished scrolling. */ onScrollEndDrag?: (event?: NativeSyntheticEvent) => void + + /** + * Fires when scroll view has finished moving + */ + onMomentumScrollEnd?: (event?: NativeSyntheticEvent) => void + + /** + * Fires when scroll view has begun moving + */ + onMomentumScrollBegin?: (event?: NativeSyntheticEvent) => void /** * When true the scroll view stops on multiples of the scroll view's size