mirror of
https://github.com/status-im/react-native.git
synced 2025-02-22 22:28:09 +00: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:
parent
3f79b2a4e9
commit
f40e744b64
@ -146,6 +146,7 @@ type GestureResponderEventProps = $ReadOnly<{|
|
|||||||
onResponderRelease?: ?Function,
|
onResponderRelease?: ?Function,
|
||||||
|
|
||||||
onResponderStart?: ?Function,
|
onResponderStart?: ?Function,
|
||||||
|
onResponderEnd?: ?Function,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The responder has been taken from the `View`. Might be taken by other
|
* 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;
|
module.exports = PanResponder;
|
||||||
|
@ -19,7 +19,9 @@ export type SyntheticEvent<T> = $ReadOnly<{|
|
|||||||
registrationName: string,
|
registrationName: string,
|
||||||
|}>,
|
|}>,
|
||||||
eventPhase: ?number,
|
eventPhase: ?number,
|
||||||
|
preventDefault: () => void,
|
||||||
isDefaultPrevented: () => boolean,
|
isDefaultPrevented: () => boolean,
|
||||||
|
stopPropagation: () => void,
|
||||||
isPropagationStopped: () => boolean,
|
isPropagationStopped: () => boolean,
|
||||||
isTrusted: ?boolean,
|
isTrusted: ?boolean,
|
||||||
nativeEvent: T,
|
nativeEvent: T,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user