mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Add missing onMomentum* properties to ScrollView. (#13732)
Added missing definitions for onMomentumScrollBegin & onMomentumScrollEnd.
This commit is contained in:
10
react-native/index.d.ts
vendored
10
react-native/index.d.ts
vendored
@@ -5634,6 +5634,16 @@ declare module "react" {
|
||||
* Fires when a user has finished scrolling.
|
||||
*/
|
||||
onScrollEndDrag?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
|
||||
|
||||
/**
|
||||
* Fires when scroll view has finished moving
|
||||
*/
|
||||
onMomentumScrollEnd?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
|
||||
|
||||
/**
|
||||
* Fires when scroll view has begun moving
|
||||
*/
|
||||
onMomentumScrollBegin?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
|
||||
|
||||
/**
|
||||
* When true the scroll view stops on multiples of the scroll view's size
|
||||
|
||||
Reference in New Issue
Block a user