Adding Missing Optional Fields to ScrollEvent Type

Summary: Adding Velocity and targetContentOffset Fields to Scroll Event Type

Reviewed By: yungsters

Differential Revision: D9731754

fbshipit-source-id: e4ad89d66d0bb4344c717cf2d94027c54d346375
This commit is contained in:
Kody Greenbaum 2018-09-11 10:15:39 -07:00 committed by Facebook Github Bot
parent 0bf56e0746
commit 159adfb826
1 changed files with 8 additions and 0 deletions

View File

@ -92,6 +92,14 @@ export type ScrollEvent = SyntheticEvent<
height: number,
width: number,
|}>,
targetContentOffset?: $ReadOnly<{|
y: number,
x: number,
|}>,
velocity?: $ReadOnly<{|
y: number,
x: number,
|}>,
zoomScale: number,
|}>,
>;