[flow] Eliminate usage of global React types in ReactNativeTypes.js (#32330)

DiffTrain build for [70f1d766e8](https://github.com/facebook/react/commit/70f1d766e8ae7ca3701193abb8c8a9f2fdbdaa9d)
This commit is contained in:
SamChou19815
2025-02-20 09:48:32 -08:00
committed by SamChou19815
parent 0719d18c94
commit 0cf3a7f681
24 changed files with 97 additions and 90 deletions
+1 -1
View File
@@ -1 +1 @@
19.1.0-native-fb-885532c1-20250220
19.1.0-native-fb-70f1d766-20250220
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f3fdbb215e991d660c90b037e95aab8e>>
* @generated SignedSource<<f1ed5ad5b371cc0a68ed181603f90916>>
*/
"use strict";
@@ -428,5 +428,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8f58b5cef27de4fe110420b1d1d80bdc>>
* @generated SignedSource<<72d3f704544d715864166ac4b1c75da0>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8f58b5cef27de4fe110420b1d1d80bdc>>
* @generated SignedSource<<72d3f704544d715864166ac4b1c75da0>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d5ed2baa4add36f7f238dbf22fb65f82>>
* @generated SignedSource<<48efca5064ee325a05be1b5fbdf0be7a>>
*/
/*
@@ -25966,11 +25966,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-885532c1-20250220" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-70f1d766-20250220" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-native-fb-885532c1-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-native-fb-70f1d766-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26007,10 +26007,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26154,5 +26154,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<304d7b84d25f1eba164527bb1a656eb1>>
* @generated SignedSource<<c44047ca782aca9e0243330cff9c91c7>>
*/
/*
@@ -16001,14 +16001,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;
if (
"19.1.0-native-fb-885532c1-20250220" !==
"19.1.0-native-fb-70f1d766-20250220" !==
isomorphicReactPackageVersion$jscomp$inline_1785
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1785,
"19.1.0-native-fb-885532c1-20250220"
"19.1.0-native-fb-70f1d766-20250220"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16030,10 +16030,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2245 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2246 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16137,4 +16137,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<75d7e446facc9bcce7166eca750b1f32>>
* @generated SignedSource<<1e6e9e4ccb7333f635f86d3a0b383ed1>>
*/
/*
@@ -16651,14 +16651,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1880 = React.version;
if (
"19.1.0-native-fb-885532c1-20250220" !==
"19.1.0-native-fb-70f1d766-20250220" !==
isomorphicReactPackageVersion$jscomp$inline_1880
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1880,
"19.1.0-native-fb-885532c1-20250220"
"19.1.0-native-fb-70f1d766-20250220"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16680,10 +16680,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1887 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220",
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$294 = 0;
@@ -16802,4 +16802,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ff9e34476e0eefb55e6a83002ff68c03>>
* @generated SignedSource<<471066554e17e344ada305ba7169bac5>>
*/
/*
@@ -26027,11 +26027,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-885532c1-20250220" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-70f1d766-20250220" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-native-fb-885532c1-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-native-fb-70f1d766-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26068,10 +26068,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26531,7 +26531,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4ec0cb2dfc90d4eab0b99b3cc93f17f2>>
* @generated SignedSource<<fd383d17c530517d8579fcf2307ddeb0>>
*/
/*
@@ -16012,14 +16012,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1786 = React.version;
if (
"19.1.0-native-fb-885532c1-20250220" !==
"19.1.0-native-fb-70f1d766-20250220" !==
isomorphicReactPackageVersion$jscomp$inline_1786
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1786,
"19.1.0-native-fb-885532c1-20250220"
"19.1.0-native-fb-70f1d766-20250220"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16041,10 +16041,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2248 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2249 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16302,4 +16302,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<88bcbe1b0f05e24227e16594aa800b95>>
* @generated SignedSource<<a9a3916225ae01d8d1b69b9cb1d6cebd>>
*/
/*
@@ -16666,14 +16666,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1881 = React.version;
if (
"19.1.0-native-fb-885532c1-20250220" !==
"19.1.0-native-fb-70f1d766-20250220" !==
isomorphicReactPackageVersion$jscomp$inline_1881
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1881,
"19.1.0-native-fb-885532c1-20250220"
"19.1.0-native-fb-70f1d766-20250220"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16695,10 +16695,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1888 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220",
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$294 = 0;
@@ -16971,7 +16971,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<dfc4a254f7993da3d6f4ef41a58247d3>>
* @generated SignedSource<<2c031d6875582379d6b56b2e73f68725>>
*/
"use strict";
@@ -15645,10 +15645,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15793,5 +15793,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<08bad2d60c623a0b2e1fdb0d629ba922>>
* @generated SignedSource<<427b86bfb208a4f8cb7fbb90bb97fdb7>>
*/
"use strict";
@@ -9784,10 +9784,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1389 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1390 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9923,4 +9923,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8d4660193da0b919181831589269d39e>>
* @generated SignedSource<<aba37b70a30e6f68a8e3ff0c1714609a>>
*/
"use strict";
@@ -10355,10 +10355,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1207 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220",
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$147 = 0;
@@ -10509,4 +10509,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f623845998161a98f5be6ce05dc39258>>
* @generated SignedSource<<43232d56833b2208547bc7b9c6a6aed8>>
*/
"use strict";
@@ -1455,7 +1455,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<45eba8e4cf73704db7fd12ad634d8a07>>
* @generated SignedSource<<26eac86d9cb9a16d74d0dae759175ae1>>
*/
"use strict";
@@ -603,4 +603,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c3aa8ef5ae6da7e51e4591b9e4abc767>>
* @generated SignedSource<<6781e122aae76e0602647628a8c0b68f>>
*/
"use strict";
@@ -607,7 +607,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-native-fb-885532c1-20250220";
exports.version = "19.1.0-native-fb-70f1d766-20250220";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
885532c124f32436723cd51627d06de6e8c13fdd
70f1d766e8ae7ca3701193abb8c8a9f2fdbdaa9d
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f8c98439e2f6399b4dd619b75ee46844>>
* @generated SignedSource<<93328912739c4db429ae4096f88738f8>>
*/
"use strict";
@@ -17460,10 +17460,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<104dd5838c87bb8ea4f5bd004d9d1c41>>
* @generated SignedSource<<16b700536160d0bb55e623abe6a25b85>>
*/
"use strict";
@@ -11038,10 +11038,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1221 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1221.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2c576e56000dfe1e595b472e244ad188>>
* @generated SignedSource<<22633bfa9dee00b667461592310fc753>>
*/
"use strict";
@@ -11691,10 +11691,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1314 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1314.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b54a863efd35b760ec9b2a5300c77b7e>>
* @generated SignedSource<<d3194dc2f58143eca89cd459aad3abf3>>
*/
"use strict";
@@ -17638,11 +17638,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-885532c1-20250220" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-70f1d766-20250220" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.1.0-native-fb-885532c1-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.1.0-native-fb-70f1d766-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -17668,10 +17668,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<fceffb8d2cc6df37255bb367853920d0>>
* @generated SignedSource<<3c268901b25ab28d5d40997ab373e972>>
*/
"use strict";
@@ -11139,11 +11139,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-885532c1-20250220" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-70f1d766-20250220" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.1.0-native-fb-885532c1-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.1.0-native-fb-70f1d766-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11192,10 +11192,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1272 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1272.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7278e3bf1d983621696e9c9dc769b0ce>>
* @generated SignedSource<<207aaddc01f6f0e2d89b4ac74f5f5d54>>
*/
"use strict";
@@ -11792,11 +11792,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-885532c1-20250220" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-70f1d766-20250220" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.1.0-native-fb-885532c1-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.1.0-native-fb-70f1d766-20250220\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11845,10 +11845,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1365 = {
bundleType: 0,
version: "19.1.0-native-fb-885532c1-20250220",
version: "19.1.0-native-fb-70f1d766-20250220",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-885532c1-20250220"
reconcilerVersion: "19.1.0-native-fb-70f1d766-20250220"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1365.rendererConfig = extraDevToolsConfig);
@@ -7,10 +7,16 @@
* @noformat
* @nolint
* @flow strict
* @generated SignedSource<<d020970c0862ae39beaffe31c0a54f08>>
* @generated SignedSource<<de5df78e34b3d51e1cc9efbc4e79c1d8>>
*/
import type {ElementRef, ElementType, MixedElement} from 'react';
import type {
Component as ReactComponent,
ElementRef,
ElementType,
MixedElement,
RefSetter,
} from 'react';
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
import {type PublicRootInstance} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
@@ -136,7 +142,7 @@ declare const ensureNativeMethodsAreSynced: NativeMethods;
export type HostInstance = NativeMethods;
export type HostComponent<Config: {...}> = component(
ref: React$RefSetter<HostInstance>,
ref: RefSetter<HostInstance>,
...Config
);
@@ -189,7 +195,8 @@ export type RenderRootOptions = {
errorInfo: {
+componentStack?: ?string,
// $FlowFixMe[unclear-type] unknown props and state.
+errorBoundary?: ?React$Component<any, any>,
// $FlowFixMe[value-as-type] Component in react repo is any-typed, but it will be well typed externally.
+errorBoundary?: ?ReactComponent<any, any>,
},
) => void,
onRecoverableError?: (