Skip to content

Commit

Permalink
React Native sync for revisions c28f313...0cac4d5
Browse files Browse the repository at this point in the history
Summary:
This sync includes the following changes:
- **[0cac4d54c](facebook/react@0cac4d54c )**: Double invoked effects on suspended children ([#25307](facebook/react#25307)) //<Samuel Susla>//
- **[3d615fc14](facebook/react@3d615fc14 )**: Grammar. Removed doubles of the word "the". ([#25295](facebook/react#25295)) //<Victoria Graf>//
- **[6e3bc8a](facebook/react@6e3bc8a2e )**: [DevTools] Check if Proxy exists before creating DispatcherProxy ([#25278](facebook/react#25278)) //<Tianyu Yao>//
- **[e7fc04b29](facebook/react@e7fc04b29 )**: [react-dom] Reorganize react-dom internals to match react ([#25277](facebook/react#25277)) //<Josh Story>//
- **[0b54e0047](facebook/react@0b54e0047 )**: Handle rejections to avoid uncaught rejections ([#25272](facebook/react#25272)) //<Sebastian Markbåge>//
- **[c5d06fdc5](facebook/react@c5d06fdc5 )**: [Flight] Fix Webpack Chunk Loading ([#25271](facebook/react#25271)) //<Sebastian Markbåge>//
- **[975b64464](facebook/react@975b64464 )**: [Flight] response.readRoot() -> use(response) ([#25267](facebook/react#25267)) //<Sebastian Markbåge>//
- **[60fbb7b14](facebook/react@60fbb7b14 )**: [Flight] Implement FlightClient in terms of Thenable/Promises instead of throwing Promises ([#25260](facebook/react#25260)) //<Sebastian Markbåge>//
- **[c91a1e03b](facebook/react@c91a1e03b )**: experimental_useEvent ([#25229](facebook/react#25229)) //<Lauren Tan>//
- **[346c7d4c4](facebook/react@346c7d4c4 )**: straightford explicit types ([#25253](facebook/react#25253)) //<Jan Kassens>//
- **[3401e9200](facebook/react@3401e9200 )**: useMemoCache implementation ([#25143](facebook/react#25143)) //<Joseph Savona>//
- **[0556bab32](facebook/react@0556bab32 )**: [Transition Tracing] More Accurate End Time ([#25105](facebook/react#25105)) //<Luna Ruan>//
- **[5fdcd23aa](facebook/react@5fdcd23aa )**: Flow: upgrade to 0.140 ([#25252](facebook/react#25252)) //<Jan Kassens>//
- **[5c43c6f02](facebook/react@5c43c6f02 )**: Unwind the current workInProgress if it's suspended ([#25247](facebook/react#25247)) //<Sebastian Markbåge>//
- **[e52fa4c57](facebook/react@e52fa4c57 )**: Add early exit to strict mode ([#25235](facebook/react#25235)) //<Samuel Susla>//
- **[6aa38e74c](facebook/react@6aa38e74c )**: Flow: enable unsafe-addition error ([#25242](facebook/react#25242)) //<Jan Kassens>//
- **[ba7b6f418](facebook/react@ba7b6f418 )**: Flow: upgrade to 0.132 ([#25244](facebook/react#25244)) //<Jan Kassens>//
- **[9328988c0](facebook/react@9328988c0 )**: Flow: fix Fiber typed as any ([#25241](facebook/react#25241)) //<Jan Kassens>//
- **[c739cef2f](facebook/react@c739cef2f )**: Flow: ReactFiberHotReloading recursive type ([#25225](facebook/react#25225)) //<Jan Kassens>//
- **[c156ecd48](facebook/react@c156ecd48 )**: Add some test coverage for some error cases ([#25240](facebook/react#25240)) //<Sebastian Markbåge>//
- **[3613284dc](facebook/react@3613284dc )**: experimental_use(context) for server components and ssr ([#25226](facebook/react#25226)) //<mofeiZ>//
- **[269c4e975](facebook/react@269c4e975 )**: Prevent infinite re-renders in StrictMode + Offscreen ([#25203](facebook/react#25203)) //<Samuel Susla>//
- **[8003ab9cf](facebook/react@8003ab9cf )**: Flow: remove explicit object syntax ([#25223](facebook/react#25223)) //<Jan Kassens>//
- **[492c6e29e](facebook/react@492c6e29e )**: Flow: upgrade to 0.127 ([#25221](facebook/react#25221)) //<Jan Kassens>//
- **[8a9e7b6ce](facebook/react@8a9e7b6ce )**: Flow: implicit-inexact-object=error ([#25210](facebook/react#25210)) //<Jan Kassens>//
- **[37cc6bf12](facebook/react@37cc6bf12 )**: Remove useDeferredValue and useTransition from Flight subset ([#25215](facebook/react#25215)) //<Sebastian Markbåge>//

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
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Sep 22, 2022
1 parent 6529383 commit 59f25da
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Libraries/Renderer/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c28f313e6d90a13b2eca85c1b3543d1ea6f81603
0cac4d54c3eb144b72b7bf0ccf05b3740c6b747f
42 changes: 21 additions & 21 deletions Libraries/Renderer/shims/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @noformat
* @flow strict
* @generated SignedSource<<eea119fd0786bbbd30861721a92f3fa7>>
* @generated SignedSource<<d1711869276d3e52d184ac3230988ced>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand Down Expand Up @@ -38,10 +38,10 @@ export type MeasureLayoutOnSuccessCallback = (

export type AttributeType<T, V> =
| 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
Expand Down Expand Up @@ -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,
Expand All @@ -109,7 +109,7 @@ export type NativeMethods = $ReadOnly<{|
onFail?: () => void,
): void,
setNativeProps(nativeProps: {...}): void,
|}>;
}>;

export type HostComponent<T> = AbstractComponent<T, $ReadOnly<NativeMethods>>;

Expand All @@ -125,43 +125,43 @@ type InspectorDataProps = $ReadOnly<{
...,
}>;

type InspectorDataSource = $ReadOnly<{|
type InspectorDataSource = $ReadOnly<{
fileName?: string,
lineNumber?: number,
|}>;
}>;

type InspectorDataGetter = (
<TElementType: ElementType>(
componentOrHandle: ElementRef<TElementType> | 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.
Expand Down Expand Up @@ -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,
|}>;
}>;
14 changes: 7 additions & 7 deletions Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @noformat
* @flow strict-local
* @generated SignedSource<<a5b40ebf1f5b17d6dc83479c1c597566>>
* @generated SignedSource<<825c6cbf78ba133c9a0ffdeace7f6fc0>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand All @@ -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,
|}>,
}>,
...,
} = {};

Expand Down

0 comments on commit 59f25da

Please sign in to comment.