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:
Ramanpreet Nara 2018-09-27 14:02:38 -07:00 коммит произвёл Facebook Github Bot
Родитель 3f79b2a4e9
Коммит f40e744b64
3 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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,