mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
add scroll handlers to ScrollView (#13237)
This commit is contained in:
committed by
Masahiro Wakame
parent
28f528ffab
commit
383fca5ed7
Vendored
+11
-1
@@ -5576,7 +5576,17 @@ declare module "react" {
|
||||
* Fires at most once per frame during scrolling.
|
||||
* The frequency of the events can be contolled using the scrollEventThrottle prop.
|
||||
*/
|
||||
onScroll?: (event?: { nativeEvent: NativeScrollEvent }) => void
|
||||
onScroll?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
|
||||
|
||||
/**
|
||||
* Fires if a user initiates a scroll gesture.
|
||||
*/
|
||||
onScrollBeginDrag?: (event?: NativeSyntheticEvent<NativeScrollEvent>) => void
|
||||
|
||||
/**
|
||||
* Fires when a user has finished scrolling.
|
||||
*/
|
||||
onScrollEndDrag?: (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