Merge pull request #20236 from simontreny/master

[react-native] Add NativeScrollEvent.velocity
This commit is contained in:
Eloy Durán
2017-10-09 12:47:03 +02:00
committed by GitHub

View File

@@ -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;
}