RN: Flow Type for `PressEvent`

Reviewed By: sahrens

Differential Revision: D7082716

fbshipit-source-id: 13e1730b0b2380ae6be63e2b36bb40b9a44a99f4
This commit is contained in:
Tim Yung 2018-02-25 23:13:36 -08:00 committed by Facebook Github Bot
parent a817c64043
commit 80c18395e2
1 changed files with 14 additions and 1 deletions

View File

@ -43,7 +43,20 @@ export type LayoutEvent = SyntheticEvent<
|}>,
>;
export type PressEvent = SyntheticEvent<Object>;
export type PressEvent = SyntheticEvent<
$ReadOnly<{|
changedTouches: $ReadOnlyArray<$PropertyType<PressEvent, 'nativeEvent'>>,
force: number,
identifier: number,
locationX: number,
locationY: number,
pageX: number,
pageY: number,
target: ?number,
timestamp: number,
touches: $ReadOnlyArray<$PropertyType<PressEvent, 'nativeEvent'>>,
|}>,
>;
export type ScrollEvent = SyntheticEvent<
$ReadOnly<{|