From 59f25da5a47eacbeacfe31fda788dc207b6c4d4b Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Wed, 21 Sep 2022 17:41:50 -0700 Subject: [PATCH] React Native sync for revisions c28f313...0cac4d5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This sync includes the following changes: - **[0cac4d54c](https://github.com/facebook/react/commit/0cac4d54c )**: Double invoked effects on suspended children ([#25307](https://github.com/facebook/react/pull/25307)) //// - **[3d615fc14](https://github.com/facebook/react/commit/3d615fc14 )**: Grammar. Removed doubles of the word "the". ([#25295](https://github.com/facebook/react/pull/25295)) //// - **[6e3bc8a2e](https://github.com/facebook/react/commit/6e3bc8a2e )**: [DevTools] Check if Proxy exists before creating DispatcherProxy ([#25278](https://github.com/facebook/react/pull/25278)) //// - **[e7fc04b29](https://github.com/facebook/react/commit/e7fc04b29 )**: [react-dom] Reorganize react-dom internals to match react ([#25277](https://github.com/facebook/react/pull/25277)) //// - **[0b54e0047](https://github.com/facebook/react/commit/0b54e0047 )**: Handle rejections to avoid uncaught rejections ([#25272](https://github.com/facebook/react/pull/25272)) //// - **[c5d06fdc5](https://github.com/facebook/react/commit/c5d06fdc5 )**: [Flight] Fix Webpack Chunk Loading ([#25271](https://github.com/facebook/react/pull/25271)) //// - **[975b64464](https://github.com/facebook/react/commit/975b64464 )**: [Flight] response.readRoot() -> use(response) ([#25267](https://github.com/facebook/react/pull/25267)) //// - **[60fbb7b14](https://github.com/facebook/react/commit/60fbb7b14 )**: [Flight] Implement FlightClient in terms of Thenable/Promises instead of throwing Promises ([#25260](https://github.com/facebook/react/pull/25260)) //// - **[c91a1e03b](https://github.com/facebook/react/commit/c91a1e03b )**: experimental_useEvent ([#25229](https://github.com/facebook/react/pull/25229)) //// - **[346c7d4c4](https://github.com/facebook/react/commit/346c7d4c4 )**: straightford explicit types ([#25253](https://github.com/facebook/react/pull/25253)) //// - **[3401e9200](https://github.com/facebook/react/commit/3401e9200 )**: useMemoCache implementation ([#25143](https://github.com/facebook/react/pull/25143)) //// - **[0556bab32](https://github.com/facebook/react/commit/0556bab32 )**: [Transition Tracing] More Accurate End Time ([#25105](https://github.com/facebook/react/pull/25105)) //// - **[5fdcd23aa](https://github.com/facebook/react/commit/5fdcd23aa )**: Flow: upgrade to 0.140 ([#25252](https://github.com/facebook/react/pull/25252)) //// - **[5c43c6f02](https://github.com/facebook/react/commit/5c43c6f02 )**: Unwind the current workInProgress if it's suspended ([#25247](https://github.com/facebook/react/pull/25247)) //// - **[e52fa4c57](https://github.com/facebook/react/commit/e52fa4c57 )**: Add early exit to strict mode ([#25235](https://github.com/facebook/react/pull/25235)) //// - **[6aa38e74c](https://github.com/facebook/react/commit/6aa38e74c )**: Flow: enable unsafe-addition error ([#25242](https://github.com/facebook/react/pull/25242)) //// - **[ba7b6f418](https://github.com/facebook/react/commit/ba7b6f418 )**: Flow: upgrade to 0.132 ([#25244](https://github.com/facebook/react/pull/25244)) //// - **[9328988c0](https://github.com/facebook/react/commit/9328988c0 )**: Flow: fix Fiber typed as any ([#25241](https://github.com/facebook/react/pull/25241)) //// - **[c739cef2f](https://github.com/facebook/react/commit/c739cef2f )**: Flow: ReactFiberHotReloading recursive type ([#25225](https://github.com/facebook/react/pull/25225)) //// - **[c156ecd48](https://github.com/facebook/react/commit/c156ecd48 )**: Add some test coverage for some error cases ([#25240](https://github.com/facebook/react/pull/25240)) //// - **[3613284dc](https://github.com/facebook/react/commit/3613284dc )**: experimental_use(context) for server components and ssr ([#25226](https://github.com/facebook/react/pull/25226)) //// - **[269c4e975](https://github.com/facebook/react/commit/269c4e975 )**: Prevent infinite re-renders in StrictMode + Offscreen ([#25203](https://github.com/facebook/react/pull/25203)) //// - **[8003ab9cf](https://github.com/facebook/react/commit/8003ab9cf )**: Flow: remove explicit object syntax ([#25223](https://github.com/facebook/react/pull/25223)) //// - **[492c6e29e](https://github.com/facebook/react/commit/492c6e29e )**: Flow: upgrade to 0.127 ([#25221](https://github.com/facebook/react/pull/25221)) //// - **[8a9e7b6ce](https://github.com/facebook/react/commit/8a9e7b6ce )**: Flow: implicit-inexact-object=error ([#25210](https://github.com/facebook/react/pull/25210)) //// - **[37cc6bf12](https://github.com/facebook/react/commit/37cc6bf12 )**: Remove useDeferredValue and useTransition from Flight subset ([#25215](https://github.com/facebook/react/pull/25215)) //// Changelog: [General][Changed] - React Native sync for revisions c28f313...0cac4d5 jest_e2e[run_all_tests] Reviewed By: rickhanlonii Differential Revision: D39696377 fbshipit-source-id: 113878d22d6244b8555b5fb86db1da5d43f7cfd9 --- Libraries/Renderer/REVISION | 2 +- Libraries/Renderer/shims/ReactNativeTypes.js | 42 +++++++++---------- .../shims/ReactNativeViewConfigRegistry.js | 14 +++---- 3 files changed, 29 insertions(+), 29 deletions(-) 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, - |}>, + }>, ..., } = {};