diff --git a/Libraries/Renderer/REVISION b/Libraries/Renderer/REVISION index 405602fe725add..f553c513df4d21 100644 --- a/Libraries/Renderer/REVISION +++ b/Libraries/Renderer/REVISION @@ -1 +1 @@ -c28f313e6d90a13b2eca85c1b3543d1ea6f81603 \ No newline at end of file +0cac4d54c3eb144b72b7bf0ccf05b3740c6b747f \ No newline at end of file diff --git a/Libraries/Renderer/shims/ReactNativeTypes.js b/Libraries/Renderer/shims/ReactNativeTypes.js index 560931a8870f0a..c69fed7ff44fe7 100644 --- a/Libraries/Renderer/shims/ReactNativeTypes.js +++ b/Libraries/Renderer/shims/ReactNativeTypes.js @@ -6,7 +6,7 @@ * * @noformat * @flow strict - * @generated SignedSource<> + * @generated SignedSource<> * * This file was sync'd from the facebook/react repository. */ @@ -38,10 +38,10 @@ export type MeasureLayoutOnSuccessCallback = ( export type AttributeType = | true - | $ReadOnly<{| + | $ReadOnly<{ diff?: (arg1: T, arg2: T) => boolean, process?: (arg1: V) => T, - |}>; + }>; // We either force that `diff` and `process` always use mixed, // or we allow them to define specific types and use this hack @@ -98,7 +98,7 @@ export type PartialViewConfig = $ReadOnly<{ validAttributes?: PartialAttributeConfiguration, }>; -export type NativeMethods = $ReadOnly<{| +export type NativeMethods = $ReadOnly<{ blur(): void, focus(): void, measure(callback: MeasureOnSuccessCallback): void, @@ -109,7 +109,7 @@ export type NativeMethods = $ReadOnly<{| onFail?: () => void, ): void, setNativeProps(nativeProps: {...}): void, -|}>; +}>; export type HostComponent = AbstractComponent>; @@ -125,43 +125,43 @@ type InspectorDataProps = $ReadOnly<{ ..., }>; -type InspectorDataSource = $ReadOnly<{| +type InspectorDataSource = $ReadOnly<{ fileName?: string, lineNumber?: number, -|}>; +}>; type InspectorDataGetter = ( ( componentOrHandle: ElementRef | number, ) => ?number, -) => $ReadOnly<{| +) => $ReadOnly<{ measure: (callback: MeasureOnSuccessCallback) => void, props: InspectorDataProps, source: InspectorDataSource, -|}>; +}>; -export type InspectorData = $ReadOnly<{| - hierarchy: Array<{| +export type InspectorData = $ReadOnly<{ + hierarchy: Array<{ name: ?string, getInspectorData: InspectorDataGetter, - |}>, + }>, selectedIndex: ?number, props: InspectorDataProps, source: ?InspectorDataSource, -|}>; +}>; -export type TouchedViewDataAtPoint = $ReadOnly<{| +export type TouchedViewDataAtPoint = $ReadOnly<{ pointerY: number, touchedViewTag?: number, closestInstance?: mixed, - frame: $ReadOnly<{| + frame: $ReadOnly<{ top: number, left: number, width: number, height: number, - |}>, + }>, ...InspectorData, -|}>; +}>; /** * Flat ReactNative renderer bundles are too big for Flow to parse efficiently. @@ -271,18 +271,18 @@ export type LayoutAnimationProperty = | 'scaleY' | 'scaleXY'; -export type LayoutAnimationAnimationConfig = $ReadOnly<{| +export type LayoutAnimationAnimationConfig = $ReadOnly<{ duration?: number, delay?: number, springDamping?: number, initialVelocity?: number, type?: LayoutAnimationType, property?: LayoutAnimationProperty, -|}>; +}>; -export type LayoutAnimationConfig = $ReadOnly<{| +export type LayoutAnimationConfig = $ReadOnly<{ duration: number, create?: LayoutAnimationAnimationConfig, update?: LayoutAnimationAnimationConfig, delete?: LayoutAnimationAnimationConfig, -|}>; +}>; diff --git a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js index 981117e21b3f26..589303502e6b62 100644 --- a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +++ b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js @@ -6,7 +6,7 @@ * * @noformat * @flow strict-local - * @generated SignedSource<> + * @generated SignedSource<<825c6cbf78ba133c9a0ffdeace7f6fc0>> * * This file was sync'd from the facebook/react repository. */ @@ -18,19 +18,19 @@ import invariant from 'invariant'; // Event configs const customBubblingEventTypes: { - [eventName: string]: $ReadOnly<{| - phasedRegistrationNames: $ReadOnly<{| + [eventName: string]: $ReadOnly<{ + phasedRegistrationNames: $ReadOnly<{ captured: string, bubbled: string, skipBubbling?: ?boolean, - |}>, - |}>, + }>, + }>, ..., } = {}; const customDirectEventTypes: { - [eventName: string]: $ReadOnly<{| + [eventName: string]: $ReadOnly<{ registrationName: string, - |}>, + }>, ..., } = {};