Use a constant HostContext in prod builds for Fabric renderer (#29888)

<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn test --debug --watch TestName`,
open `chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

<!--
Explain the **motivation** for making this change. What existing problem
does the pull request solve?
-->

In the Fabric renderer in React Native, we only use the HostContext to
issue soft errors in __DEV__ bundles when attempting to add a raw text
child to a node that may not support them. Moving the logic to set this
context to __DEV__ bundles only unblocks more expensive methods for
resolving whether a parent context supports raw text children, like
resolving this information from `getViewConfigForType`.

## How did you test this change?

<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
  If you leave this empty, your PR will very likely be closed.
-->

yarn test (--prod)

DiffTrain build for commit https://github.com/facebook/react/commit/3154ec8a38e6014090039be54e0ca597fa967fdd.
This commit is contained in:
rozele
2024-06-14 17:42:27 +00:00
parent 19a6337b56
commit 96ce55d70c
14 changed files with 104 additions and 125 deletions
+1 -1
View File
@@ -1 +1 @@
19.0.0-native-fb-195d5bb99e-20240612
19.0.0-native-fb-3154ec8a38-20240614
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6cdcb413108c1e621ba982c74574c360>>
* @generated SignedSource<<0907a7cf7bb18ca353544d071f3fabbb>>
*/
"use strict";
@@ -15053,14 +15053,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<26761dd87498d30bb9190a1d55c61aee>>
* @generated SignedSource<<37e432939784feeb91ab06f90f2e34a1>>
*/
"use strict";
@@ -9357,7 +9357,7 @@ var devToolsConfig$jscomp$inline_1063 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1250 = {
@@ -9388,7 +9388,7 @@ var internals$jscomp$inline_1250 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1251 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f35fce92640f481c9eb6cc29117627aa>>
* @generated SignedSource<<4c4d5bb912d188af2305f4d02b06fa1f>>
*/
"use strict";
@@ -9979,7 +9979,7 @@ var devToolsConfig$jscomp$inline_1146 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-test-renderer"
};
(function (internals) {
@@ -10023,7 +10023,7 @@ var devToolsConfig$jscomp$inline_1146 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
});
exports._Scheduler = Scheduler;
exports.act = act;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d7ecd32a61474d852e2d40cc1ec28c08>>
* @generated SignedSource<<0e9df63c84b477edf49937a2b291acfa>>
*/
"use strict";
@@ -1741,7 +1741,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-native-fb-195d5bb99e-20240612";
exports.version = "19.0.0-native-fb-3154ec8a38-20240614";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5a4093ad1666047336503aabe558d5a1>>
* @generated SignedSource<<7fe71450c3e9debfe25049ec1c126ee7>>
*/
"use strict";
@@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-195d5bb99e-20240612";
exports.version = "19.0.0-native-fb-3154ec8a38-20240614";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<31516b8c299906006f335595e835e19c>>
* @generated SignedSource<<2fd92cafc9359f2f83c500e52e638764>>
*/
"use strict";
@@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-195d5bb99e-20240612";
exports.version = "19.0.0-native-fb-3154ec8a38-20240614";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
195d5bb99e366889f0905779a0f9432d1624f999
3154ec8a38e6014090039be54e0ca597fa967fdd
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<eeb59a95e0ff79fdae2370e89d593d60>>
* @generated SignedSource<<1fcc339b6f0c14225ef7ab3bb10f13f0>>
*/
"use strict";
@@ -2165,8 +2165,9 @@ __DEV__ &&
push(rootInstanceStackCursor, nextRootInstance, fiber);
push(contextFiberStackCursor, fiber, fiber);
push(contextStackCursor, null, fiber);
nextRootInstance = { isInAParentText: !1 };
pop(contextStackCursor, fiber);
push(contextStackCursor, { isInAParentText: !1 }, fiber);
push(contextStackCursor, nextRootInstance, fiber);
}
function popHostContainer(fiber) {
pop(contextStackCursor, fiber);
@@ -16685,12 +16686,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
});
})({
findFiberByHostInstance: getInstanceFromNode,
bundleType: 1,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<dd1d99273d865e111317ed207a95e790>>
* @generated SignedSource<<61089681f3a7b4551020050cddea9814>>
*/
"use strict";
@@ -1224,7 +1224,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_285 = {
var injectedNamesToPlugins$jscomp$inline_284 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1270,32 +1270,32 @@ var injectedNamesToPlugins$jscomp$inline_285 = {
}
}
},
isOrderingDirty$jscomp$inline_286 = !1,
pluginName$jscomp$inline_287;
for (pluginName$jscomp$inline_287 in injectedNamesToPlugins$jscomp$inline_285)
isOrderingDirty$jscomp$inline_285 = !1,
pluginName$jscomp$inline_286;
for (pluginName$jscomp$inline_286 in injectedNamesToPlugins$jscomp$inline_284)
if (
injectedNamesToPlugins$jscomp$inline_285.hasOwnProperty(
pluginName$jscomp$inline_287
injectedNamesToPlugins$jscomp$inline_284.hasOwnProperty(
pluginName$jscomp$inline_286
)
) {
var pluginModule$jscomp$inline_288 =
injectedNamesToPlugins$jscomp$inline_285[pluginName$jscomp$inline_287];
var pluginModule$jscomp$inline_287 =
injectedNamesToPlugins$jscomp$inline_284[pluginName$jscomp$inline_286];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_287) ||
namesToPlugins[pluginName$jscomp$inline_287] !==
pluginModule$jscomp$inline_288
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_286) ||
namesToPlugins[pluginName$jscomp$inline_286] !==
pluginModule$jscomp$inline_287
) {
if (namesToPlugins[pluginName$jscomp$inline_287])
if (namesToPlugins[pluginName$jscomp$inline_286])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_287 + "`.")
(pluginName$jscomp$inline_286 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_287] =
pluginModule$jscomp$inline_288;
isOrderingDirty$jscomp$inline_286 = !0;
namesToPlugins[pluginName$jscomp$inline_286] =
pluginModule$jscomp$inline_287;
isOrderingDirty$jscomp$inline_285 = !0;
}
}
isOrderingDirty$jscomp$inline_286 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_285 && recomputePluginOrdering();
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
@@ -1908,6 +1908,7 @@ var _nativeFabricUIManage = nativeFabricUIManager,
ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
nextReactTag = 2;
registerEventHandler && registerEventHandler(dispatchEvent);
var PROD_HOST_CONTEXT = { isInAParentText: !0 };
function createTextInstance(
text,
rootContainerInstance,
@@ -2232,7 +2233,7 @@ function pushHostContainer(fiber, nextRootInstance) {
push(contextFiberStackCursor, fiber);
push(contextStackCursor, null);
pop(contextStackCursor);
push(contextStackCursor, { isInAParentText: !1 });
push(contextStackCursor, PROD_HOST_CONTEXT);
}
function popHostContainer() {
pop(contextStackCursor);
@@ -2242,20 +2243,8 @@ function popHostContainer() {
function pushHostContext(fiber) {
null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);
var context = contextStackCursor.current;
var JSCompiler_inline_result = fiber.type;
JSCompiler_inline_result =
"AndroidTextInput" === JSCompiler_inline_result ||
"RCTMultilineTextInputView" === JSCompiler_inline_result ||
"RCTSinglelineTextInputView" === JSCompiler_inline_result ||
"RCTText" === JSCompiler_inline_result ||
"RCTVirtualText" === JSCompiler_inline_result;
JSCompiler_inline_result =
context.isInAParentText !== JSCompiler_inline_result
? { isInAParentText: JSCompiler_inline_result }
: context;
context !== JSCompiler_inline_result &&
(push(contextFiberStackCursor, fiber),
push(contextStackCursor, JSCompiler_inline_result));
context !== context &&
(push(contextFiberStackCursor, fiber), push(contextStackCursor, context));
}
function popHostContext(fiber) {
contextFiberStackCursor.current === fiber &&
@@ -10609,10 +10598,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1142 = {
devToolsConfig$jscomp$inline_1136 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10628,11 +10617,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1368 = {
bundleType: devToolsConfig$jscomp$inline_1142.bundleType,
version: devToolsConfig$jscomp$inline_1142.version,
rendererPackageName: devToolsConfig$jscomp$inline_1142.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1142.rendererConfig,
var internals$jscomp$inline_1362 = {
bundleType: devToolsConfig$jscomp$inline_1136.bundleType,
version: devToolsConfig$jscomp$inline_1136.version,
rendererPackageName: devToolsConfig$jscomp$inline_1136.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1136.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -10648,26 +10637,26 @@ var internals$jscomp$inline_1368 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1142.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1136.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1369 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1363 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1369.isDisabled &&
hook$jscomp$inline_1369.supportsFiber
!hook$jscomp$inline_1363.isDisabled &&
hook$jscomp$inline_1363.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1369.inject(
internals$jscomp$inline_1368
(rendererID = hook$jscomp$inline_1363.inject(
internals$jscomp$inline_1362
)),
(injectedHook = hook$jscomp$inline_1369);
(injectedHook = hook$jscomp$inline_1363);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0c669f399b7adb5eca1a1c038ece900d>>
* @generated SignedSource<<9e7af83234b1614ae9ef1a03b005708a>>
*/
"use strict";
@@ -1228,7 +1228,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_301 = {
var injectedNamesToPlugins$jscomp$inline_300 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1274,32 +1274,32 @@ var injectedNamesToPlugins$jscomp$inline_301 = {
}
}
},
isOrderingDirty$jscomp$inline_302 = !1,
pluginName$jscomp$inline_303;
for (pluginName$jscomp$inline_303 in injectedNamesToPlugins$jscomp$inline_301)
isOrderingDirty$jscomp$inline_301 = !1,
pluginName$jscomp$inline_302;
for (pluginName$jscomp$inline_302 in injectedNamesToPlugins$jscomp$inline_300)
if (
injectedNamesToPlugins$jscomp$inline_301.hasOwnProperty(
pluginName$jscomp$inline_303
injectedNamesToPlugins$jscomp$inline_300.hasOwnProperty(
pluginName$jscomp$inline_302
)
) {
var pluginModule$jscomp$inline_304 =
injectedNamesToPlugins$jscomp$inline_301[pluginName$jscomp$inline_303];
var pluginModule$jscomp$inline_303 =
injectedNamesToPlugins$jscomp$inline_300[pluginName$jscomp$inline_302];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_303) ||
namesToPlugins[pluginName$jscomp$inline_303] !==
pluginModule$jscomp$inline_304
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_302) ||
namesToPlugins[pluginName$jscomp$inline_302] !==
pluginModule$jscomp$inline_303
) {
if (namesToPlugins[pluginName$jscomp$inline_303])
if (namesToPlugins[pluginName$jscomp$inline_302])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_303 + "`.")
(pluginName$jscomp$inline_302 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_303] =
pluginModule$jscomp$inline_304;
isOrderingDirty$jscomp$inline_302 = !0;
namesToPlugins[pluginName$jscomp$inline_302] =
pluginModule$jscomp$inline_303;
isOrderingDirty$jscomp$inline_301 = !0;
}
}
isOrderingDirty$jscomp$inline_302 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_301 && recomputePluginOrdering();
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
@@ -2030,6 +2030,7 @@ var _nativeFabricUIManage = nativeFabricUIManager,
ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
nextReactTag = 2;
registerEventHandler && registerEventHandler(dispatchEvent);
var PROD_HOST_CONTEXT = { isInAParentText: !0 };
function createTextInstance(
text,
rootContainerInstance,
@@ -2354,7 +2355,7 @@ function pushHostContainer(fiber, nextRootInstance) {
push(contextFiberStackCursor, fiber);
push(contextStackCursor, null);
pop(contextStackCursor);
push(contextStackCursor, { isInAParentText: !1 });
push(contextStackCursor, PROD_HOST_CONTEXT);
}
function popHostContainer() {
pop(contextStackCursor);
@@ -2364,20 +2365,8 @@ function popHostContainer() {
function pushHostContext(fiber) {
null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);
var context = contextStackCursor.current;
var JSCompiler_inline_result = fiber.type;
JSCompiler_inline_result =
"AndroidTextInput" === JSCompiler_inline_result ||
"RCTMultilineTextInputView" === JSCompiler_inline_result ||
"RCTSinglelineTextInputView" === JSCompiler_inline_result ||
"RCTText" === JSCompiler_inline_result ||
"RCTVirtualText" === JSCompiler_inline_result;
JSCompiler_inline_result =
context.isInAParentText !== JSCompiler_inline_result
? { isInAParentText: JSCompiler_inline_result }
: context;
context !== JSCompiler_inline_result &&
(push(contextFiberStackCursor, fiber),
push(contextStackCursor, JSCompiler_inline_result));
context !== context &&
(push(contextFiberStackCursor, fiber), push(contextStackCursor, context));
}
function popHostContext(fiber) {
contextFiberStackCursor.current === fiber &&
@@ -11315,10 +11304,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1223 = {
devToolsConfig$jscomp$inline_1217 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -11348,10 +11337,10 @@ var roots = new Map(),
} catch (err) {}
return hook.checkDCE ? !0 : !1;
})({
bundleType: devToolsConfig$jscomp$inline_1223.bundleType,
version: devToolsConfig$jscomp$inline_1223.version,
rendererPackageName: devToolsConfig$jscomp$inline_1223.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1223.rendererConfig,
bundleType: devToolsConfig$jscomp$inline_1217.bundleType,
version: devToolsConfig$jscomp$inline_1217.version,
rendererPackageName: devToolsConfig$jscomp$inline_1217.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1217.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -11367,14 +11356,14 @@ var roots = new Map(),
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1223.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1217.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c2fa158c20dcd8a06b40b42b6e2a6620>>
* @generated SignedSource<<b6931b3bb183da0853877c53a8075688>>
*/
"use strict";
@@ -16874,11 +16874,11 @@ __DEV__ &&
var emptyObject = {};
Object.freeze(emptyObject);
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-195d5bb99e-20240612" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-3154ec8a38-20240614" !== 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.0.0-native-fb-195d5bb99e-20240612\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-3154ec8a38-20240614\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -16926,12 +16926,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
});
})({
findFiberByHostInstance: getInstanceFromTag,
bundleType: 1,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e51acd16313274f0ccaf88e4aebfc784>>
* @generated SignedSource<<0314ebefe4d1914c09db6f7ea0fd2e2f>>
*/
"use strict";
@@ -10755,11 +10755,11 @@ function traverseOwnerTreeUp(hierarchy, instance) {
traverseOwnerTreeUp(hierarchy, instance);
}
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-195d5bb99e-20240612" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-3154ec8a38-20240614" !== 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.0.0-native-fb-195d5bb99e-20240612\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-3154ec8a38-20240614\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -10809,7 +10809,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1210 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10852,7 +10852,7 @@ var internals$jscomp$inline_1457 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1458 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f2ee95b515747e4d42868df3789e86b3>>
* @generated SignedSource<<bcc07e734fef3afb68fc5db3b973af30>>
*/
"use strict";
@@ -11462,11 +11462,11 @@ function traverseOwnerTreeUp(hierarchy, instance) {
traverseOwnerTreeUp(hierarchy, instance);
}
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-195d5bb99e-20240612" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-3154ec8a38-20240614" !== 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.0.0-native-fb-195d5bb99e-20240612\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.0.0-native-fb-3154ec8a38-20240614\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11516,7 +11516,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1291 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "19.0.0-native-fb-195d5bb99e-20240612",
version: "19.0.0-native-fb-3154ec8a38-20240614",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -11572,7 +11572,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-195d5bb99e-20240612"
reconcilerVersion: "19.0.0-native-fb-3154ec8a38-20240614"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
computeComponentStackForErrorReporting: function (reactTag) {