mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Merge pull request #20236 from simontreny/master
[react-native] Add NativeScrollEvent.velocity
This commit is contained in:
6
types/react-native/index.d.ts
vendored
6
types/react-native/index.d.ts
vendored
@@ -6404,6 +6404,11 @@ export interface NativeScrollPoint {
|
||||
y: number;
|
||||
}
|
||||
|
||||
export interface NativeScrollVelocity {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
|
||||
export interface NativeScrollSize {
|
||||
height: number;
|
||||
width: number;
|
||||
@@ -6414,6 +6419,7 @@ export interface NativeScrollEvent {
|
||||
contentOffset: NativeScrollPoint;
|
||||
contentSize: NativeScrollSize;
|
||||
layoutMeasurement: NativeScrollSize;
|
||||
velocity?: NativeScrollVelocity;
|
||||
zoomScale: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user