From e485cde187e4cd92bc821e58047b149a789dd713 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 1 Feb 2018 11:35:36 -0800 Subject: [PATCH] use scrollview for lightbox on ios Reviewed By: wwalser Differential Revision: D6858376 fbshipit-source-id: a9ff9c71cb4ad56a4f5af73a4e86de52ddf75700 --- Libraries/Types/CoreEventTypes.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Libraries/Types/CoreEventTypes.js b/Libraries/Types/CoreEventTypes.js index ea2e5ec16..db6662881 100644 --- a/Libraries/Types/CoreEventTypes.js +++ b/Libraries/Types/CoreEventTypes.js @@ -19,12 +19,9 @@ export type Layout = {| +width: number, +height: number, |}; -export type LayoutEvent = {| - +nativeEvent: {| - +layout: Layout, - |}, - +persist: () => void, -|}; +export type LayoutEvent = SyntheticEvent<{| + +layout: Layout, +|}>; export type SyntheticEvent = {| +bubbles: ?boolean, @@ -39,6 +36,7 @@ export type SyntheticEvent = {| +isPropagationStopped: () => boolean, +isTrusted: ?boolean, +nativeEvent: T, + +persist: () => void, +target: ?number, +timeStamp: number, +type: ?string,