Skip to content

Commit

Permalink
Remove duplicate flow type for TouchableProps
Browse files Browse the repository at this point in the history
Summary: These are already defined as part of ViewProps. They don't need to be duplicated

Reviewed By: lunaleaps

Differential Revision: D17859553

fbshipit-source-id: c3de534526efd94c0a9ff2c772a4d92c6164815b
  • Loading branch information
TheSavior authored and facebook-github-bot committed Oct 11, 2019
1 parent 55b3213 commit fb5276c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ export type ScrollResponderType = {
...typeof ScrollResponder.Mixin,
};

type TouchableProps = $ReadOnly<{|
onTouchStart?: (event: PressEvent) => void,
onTouchMove?: (event: PressEvent) => void,
onTouchEnd?: (event: PressEvent) => void,
onTouchCancel?: (event: PressEvent) => void,
onTouchEndCapture?: (event: PressEvent) => void,
|}>;

type IOSProps = $ReadOnly<{|
/**
* Controls whether iOS should automatically adjust the content inset
Expand Down Expand Up @@ -383,7 +375,6 @@ type StickyHeaderComponentType = React.ComponentType<ScrollViewStickyHeaderProps

export type Props = $ReadOnly<{|
...ViewProps,
...TouchableProps,
...IOSProps,
...AndroidProps,
...VRProps,
Expand Down

0 comments on commit fb5276c

Please sign in to comment.