Back out "React Native sync for revisions fccf3a9...47cf4e5"

Summary:
There's some problem in the last sync that changes the memoization behavior in some product code. We'll revert and investigate.

Changelog: [internal]

Reviewed By: bvanderhoof

Differential Revision: D44100907

fbshipit-source-id: 233b478dd6f2f29121ac05323047ab6099b6b56c
This commit is contained in:
Rubén Norte
2023-03-15 11:38:15 -07:00
committed by Facebook GitHub Bot
parent 01e7ff5513
commit 06b97ca28e
2 changed files with 16 additions and 27 deletions
+1 -1
View File
@@ -1 +1 @@
47cf4e578c2d8eef9c6cc27105ce560307999244
fccf3a9fba5fd778c678657c556344b333111cfb
+15 -26
View File
@@ -6,7 +6,7 @@
*
* @noformat
* @flow strict
* @generated SignedSource<<4df0c7d45c633ce1409906d78ee6813c>>
* @generated SignedSource<<265b342f0d29323bebb711ba0bc882ec>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -98,23 +98,7 @@ export type PartialViewConfig = $ReadOnly<{
validAttributes?: PartialAttributeConfiguration,
}>;
/**
* Current usages should migrate to this definition
*/
export interface INativeMethods {
blur(): void;
focus(): void;
measure(callback: MeasureOnSuccessCallback): void;
measureInWindow(callback: MeasureInWindowOnSuccessCallback): void;
measureLayout(
relativeToNativeNode: number | ElementRef<HostComponent<mixed>>,
onSuccess: MeasureLayoutOnSuccessCallback,
onFail?: () => void,
): void;
setNativeProps(nativeProps: {...}): void;
}
export type NativeMethods = $ReadOnly<{|
export type NativeMethods = $ReadOnly<{
blur(): void,
focus(): void,
measure(callback: MeasureOnSuccessCallback): void,
@@ -125,11 +109,7 @@ export type NativeMethods = $ReadOnly<{|
onFail?: () => void,
): void,
setNativeProps(nativeProps: {...}): void,
|}>;
// This validates that INativeMethods and NativeMethods stay in sync using Flow!
declare var ensureNativeMethodsAreSynced: NativeMethods;
(ensureNativeMethodsAreSynced: INativeMethods);
}>;
export type HostComponent<T> = AbstractComponent<T, $ReadOnly<NativeMethods>>;
@@ -215,8 +195,6 @@ export type ReactNativeType = {
...
};
export opaque type Node = mixed;
export type ReactFabricType = {
findHostInstance_DEPRECATED<TElementType: ElementType>(
componentOrHandle: ?(ElementRef<TElementType> | number),
@@ -240,7 +218,18 @@ export type ReactFabricType = {
concurrentRoot: ?boolean,
): ?ElementRef<ElementType>,
unmountComponentAtNode(containerTag: number): void,
getNodeFromInternalInstanceHandle(internalInstanceHandle: mixed): ?Node,
...
};
export type ReactNativeEventTarget = {
node: {...},
canonical: {
_nativeTag: number,
viewConfig: ViewConfig,
currentProps: {...},
_internalInstanceHandle: {...},
...
},
...
};