Merge pull request #14310 from wcandillon/patch-2

Add missing onContentSizeChange property
This commit is contained in:
Zhengbo Li
2017-02-21 14:42:23 -08:00
committed by GitHub

View File

@@ -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.