mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Merge pull request #14310 from wcandillon/patch-2
Add missing onContentSizeChange property
This commit is contained in:
10
react-native/index.d.ts
vendored
10
react-native/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user