Skip to content

Commit

Permalink
RN: Flow Type for PressEvent
Browse files Browse the repository at this point in the history
Reviewed By: sahrens

Differential Revision: D7082716

fbshipit-source-id: 13e1730b0b2380ae6be63e2b36bb40b9a44a99f4
  • Loading branch information
yungsters authored and facebook-github-bot committed Feb 26, 2018
1 parent a817c64 commit 80c1839
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Libraries/Types/CoreEventTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<{|
Expand Down

0 comments on commit 80c1839

Please sign in to comment.