diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 6b540a9309..2f95939db6 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.