From dc3fc280b18d86792e958f8c254d27d2e0f88790 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Sat, 28 Jan 2017 00:45:15 +0100 Subject: [PATCH] Add missing onContentSizeChange property --- react-native/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index c46db449f8..64c5847bcc 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -5533,7 +5533,15 @@ declare module "react" { * is false. */ keyboardShouldPersistTaps?: boolean - + + /** + * Called when scrollable content view of the ScrollView changes. + * Handler function is passed the content width and content height as parameters: (contentWidth, contentHeight) + * It's implemented using onLayout handler attached to the content container which this ScrollView renders. + * + */ + onContentSizeChange?: (w: number, h: number) => void + /** * Fires at most once per frame during scrolling. * The frequency of the events can be contolled using the scrollEventThrottle prop.