mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Fix internal flow problems
Summary: D10013265 introduces flow types for `PanResponder`. This diff fixes the facebook-internal flow errors that surface as a result. Reviewed By: TheSavior Differential Revision: D10035046 fbshipit-source-id: fbba3d61e68851dda2da4f8e98238e0fdb35a27e
This commit is contained in:
committed by
Facebook Github Bot
parent
3f79b2a4e9
commit
f40e744b64
@@ -146,6 +146,7 @@ type GestureResponderEventProps = $ReadOnly<{|
|
||||
onResponderRelease?: ?Function,
|
||||
|
||||
onResponderStart?: ?Function,
|
||||
onResponderEnd?: ?Function,
|
||||
|
||||
/**
|
||||
* The responder has been taken from the `View`. Might be taken by other
|
||||
|
||||
@@ -555,4 +555,9 @@ function clearInteractionHandle(
|
||||
}
|
||||
}
|
||||
|
||||
export type PanResponderInstance = $Call<
|
||||
$PropertyType<typeof PanResponder, 'create'>,
|
||||
PanResponderConfig,
|
||||
>;
|
||||
|
||||
module.exports = PanResponder;
|
||||
|
||||
@@ -19,7 +19,9 @@ export type SyntheticEvent<T> = $ReadOnly<{|
|
||||
registrationName: string,
|
||||
|}>,
|
||||
eventPhase: ?number,
|
||||
preventDefault: () => void,
|
||||
isDefaultPrevented: () => boolean,
|
||||
stopPropagation: () => void,
|
||||
isPropagationStopped: () => boolean,
|
||||
isTrusted: ?boolean,
|
||||
nativeEvent: T,
|
||||
|
||||
Reference in New Issue
Block a user