[react-native] Consume ReactNativeAttributePayloadFabric from ReactNativePrivateInterface (#33616)

## Summary

ReactNativeAttributePayloadFabric was synced to react-native in
https://github.com/facebook/react-native/commit/0e42d33cbcfadcf5d787108da785d56a83d07a9f.
We should now consume these methods from the
ReactNativePrivateInterface.

Moving these methods to the React Native repo gives us more flexibility
to experiment with new techniques for bridging and diffing props
payloads.

I did have to leave some stub implementations for existing unit tests,
but moved all detailed tests to the React Native repo.

## How did you test this change?

* `yarn prettier`
* `yarn test ReactFabric-test`

DiffTrain build for [7a3ffef703](https://github.com/facebook/react/commit/7a3ffef70339c10f8d65a27b88cd73bfbe13eb8a)
This commit is contained in:
javache
2025-06-25 02:31:15 -07:00
parent 6db4aa0298
commit fc97c65ed0
25 changed files with 343 additions and 1075 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-e67b4fe2-20250624
19.2.0-native-fb-7a3ffef7-20250625
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<fa098fba5d8d945a13d13b2e957df11e>>
* @generated SignedSource<<1abf9bbcc860e717bc8adfe10f524640>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<751a26b4f7a58b2a156281f634c3fc3b>>
* @generated SignedSource<<20ff73d65444bbc2713fa40eed4306d7>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<751a26b4f7a58b2a156281f634c3fc3b>>
* @generated SignedSource<<20ff73d65444bbc2713fa40eed4306d7>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<bf6b343f95178245e7b0828a3f8f73b7>>
* @generated SignedSource<<181af218a87b23d184f355e26019ba48>>
*/
/*
@@ -28651,11 +28651,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-e67b4fe2-20250624" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-7a3ffef7-20250625" !== 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.2.0-native-fb-e67b4fe2-20250624\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28692,10 +28692,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28833,5 +28833,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<84e82f6218189a363fac2c7b40fc5145>>
* @generated SignedSource<<9f2480281345d6eb3d91d40d922d5445>>
*/
/*
@@ -17121,14 +17121,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
if (
"19.2.0-native-fb-e67b4fe2-20250624" !==
"19.2.0-native-fb-7a3ffef7-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2023
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2023,
"19.2.0-native-fb-e67b4fe2-20250624"
"19.2.0-native-fb-7a3ffef7-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17150,10 +17150,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2542 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2543 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17251,4 +17251,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ae9ac5dd6ecd7b6811e9009356bbef31>>
* @generated SignedSource<<0064ffe71ce9359ff2e85eb6917c1453>>
*/
/*
@@ -19053,14 +19053,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2261 = React.version;
if (
"19.2.0-native-fb-e67b4fe2-20250624" !==
"19.2.0-native-fb-7a3ffef7-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2261
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2261,
"19.2.0-native-fb-e67b4fe2-20250624"
"19.2.0-native-fb-7a3ffef7-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19082,10 +19082,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2268 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624",
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$331 = 0;
@@ -19198,4 +19198,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4234fdca79b1d31c3b18c5c6d6a063da>>
* @generated SignedSource<<dda28ef8a2b205afbc6f4fe9d65ddc3f>>
*/
/*
@@ -28707,11 +28707,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-e67b4fe2-20250624" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-7a3ffef7-20250625" !== 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.2.0-native-fb-e67b4fe2-20250624\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28748,10 +28748,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29205,7 +29205,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9c75c5ac2e5f2df48ce404070194fa10>>
* @generated SignedSource<<3be29fe631133e7aab2ea410a1fc77a9>>
*/
/*
@@ -17132,14 +17132,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
if (
"19.2.0-native-fb-e67b4fe2-20250624" !==
"19.2.0-native-fb-7a3ffef7-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2024
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2024,
"19.2.0-native-fb-e67b4fe2-20250624"
"19.2.0-native-fb-7a3ffef7-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17161,10 +17161,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2545 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2546 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17415,4 +17415,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2612571da46f33624e6415a30a8f2972>>
* @generated SignedSource<<0d85fb52dbcbb609cc637d3ba30251c5>>
*/
/*
@@ -19068,14 +19068,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2262 = React.version;
if (
"19.2.0-native-fb-e67b4fe2-20250624" !==
"19.2.0-native-fb-7a3ffef7-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2262
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2262,
"19.2.0-native-fb-e67b4fe2-20250624"
"19.2.0-native-fb-7a3ffef7-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19097,10 +19097,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2269 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624",
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$331 = 0;
@@ -19366,7 +19366,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d1bd40c7b75eef018cfb670c73758d22>>
* @generated SignedSource<<935ec44cc0d38a0f41856743afccd8ef>>
*/
"use strict";
@@ -15722,10 +15722,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15870,5 +15870,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<319aef86a44c99fde48885c396e20b61>>
* @generated SignedSource<<f340d133f9c92668432d8ba535876321>>
*/
"use strict";
@@ -9905,10 +9905,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1453 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1454 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10044,4 +10044,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6d087d35984f8a940c6afa0010c70373>>
* @generated SignedSource<<f6eef15c18ee1d19186dd45791f4754d>>
*/
"use strict";
@@ -10525,10 +10525,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1260 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624",
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$155 = 0;
@@ -10679,4 +10679,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<244327f3321f57e04f4557c7de4bd2d1>>
* @generated SignedSource<<823bdb3acbf9ea1fdaa54035681c8ad3>>
*/
"use strict";
@@ -1413,7 +1413,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6170f99d081aebc30562e824f56a005b>>
* @generated SignedSource<<7983355a5b04d4ef3eaf2c30a7ad5662>>
*/
"use strict";
@@ -589,4 +589,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<806e2ffced581291605edcc784c7761e>>
* @generated SignedSource<<b1a13b08cbf57d7aea8677eeebb1d262>>
*/
"use strict";
@@ -593,7 +593,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-e67b4fe2-20250624";
exports.version = "19.2.0-native-fb-7a3ffef7-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
e67b4fe22e0c3c267303ee6737aec1db48055022
7a3ffef70339c10f8d65a27b88cd73bfbe13eb8a
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<32a22b607e3646113f31c5040693ab57>>
* @generated SignedSource<<7581843a2cfaa6a692230809b2d00e6c>>
*/
"use strict";
@@ -1201,252 +1201,6 @@ __DEV__ &&
}
}
}
function defaultDiffer(prevProp, nextProp) {
return "object" !== typeof nextProp || null === nextProp
? !0
: ReactNativePrivateInterface.deepDiffer(
prevProp,
nextProp,
deepDifferOptions
);
}
function restoreDeletedValuesInNestedArray(
updatePayload,
node,
validAttributes
) {
if (isArrayImpl(node))
for (var i = node.length; i-- && 0 < removedKeyCount; )
restoreDeletedValuesInNestedArray(
updatePayload,
node[i],
validAttributes
);
else if (node && 0 < removedKeyCount)
for (i in removedKeys)
if (removedKeys[i]) {
var nextProp = node[i];
if (void 0 !== nextProp) {
var attributeConfig = validAttributes[i];
if (attributeConfig) {
"function" === typeof nextProp && (nextProp = !0);
"undefined" === typeof nextProp && (nextProp = null);
if ("object" !== typeof attributeConfig)
updatePayload[i] = nextProp;
else if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
)
(nextProp =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
(updatePayload[i] = nextProp);
removedKeys[i] = !1;
removedKeyCount--;
}
}
}
}
function diffNestedProperty(
updatePayload,
prevProp,
nextProp,
validAttributes
) {
if (!updatePayload && prevProp === nextProp) return updatePayload;
if (!prevProp || !nextProp)
return nextProp
? addNestedProperty(updatePayload, nextProp, validAttributes)
: prevProp
? clearNestedProperty(updatePayload, prevProp, validAttributes)
: updatePayload;
if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp))
return diffProperties(
updatePayload,
prevProp,
nextProp,
validAttributes
);
if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) {
var minLength =
prevProp.length < nextProp.length
? prevProp.length
: nextProp.length,
i;
for (i = 0; i < minLength; i++)
updatePayload = diffNestedProperty(
updatePayload,
prevProp[i],
nextProp[i],
validAttributes
);
for (; i < prevProp.length; i++)
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes
);
for (; i < nextProp.length; i++)
(prevProp = nextProp[i]) &&
(updatePayload = addNestedProperty(
updatePayload,
prevProp,
validAttributes
));
return updatePayload;
}
return isArrayImpl(prevProp)
? diffProperties(
updatePayload,
ReactNativePrivateInterface.flattenStyle(prevProp),
nextProp,
validAttributes
)
: diffProperties(
updatePayload,
prevProp,
ReactNativePrivateInterface.flattenStyle(nextProp),
validAttributes
);
}
function clearNestedProperty(updatePayload, prevProp, validAttributes) {
if (!prevProp) return updatePayload;
if (!isArrayImpl(prevProp))
return diffProperties(
updatePayload,
prevProp,
emptyObject$1,
validAttributes
);
for (var i = 0; i < prevProp.length; i++)
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes
);
return updatePayload;
}
function diffProperties(
updatePayload,
prevProps,
nextProps,
validAttributes
) {
var attributeConfig, propKey;
for (propKey in nextProps)
if ((attributeConfig = validAttributes[propKey])) {
var prevProp = prevProps[propKey];
var nextProp = nextProps[propKey];
"function" !== typeof nextProp ||
("object" === typeof attributeConfig &&
"function" === typeof attributeConfig.process) ||
((nextProp = !0),
"function" === typeof prevProp && (prevProp = !0));
"undefined" === typeof nextProp &&
((nextProp = null),
"undefined" === typeof prevProp && (prevProp = null));
removedKeys && (removedKeys[propKey] = !1);
if (updatePayload && void 0 !== updatePayload[propKey])
if ("object" !== typeof attributeConfig)
updatePayload[propKey] = nextProp;
else {
if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
)
(attributeConfig =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
(updatePayload[propKey] = attributeConfig);
}
else if (prevProp !== nextProp)
if ("object" !== typeof attributeConfig)
defaultDiffer(prevProp, nextProp) &&
((updatePayload || (updatePayload = {}))[propKey] = nextProp);
else if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
) {
if (
void 0 === prevProp ||
("function" === typeof attributeConfig.diff
? attributeConfig.diff(prevProp, nextProp)
: defaultDiffer(prevProp, nextProp))
)
(attributeConfig =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
((updatePayload || (updatePayload = {}))[propKey] =
attributeConfig);
} else
(removedKeys = null),
(removedKeyCount = 0),
(updatePayload = diffNestedProperty(
updatePayload,
prevProp,
nextProp,
attributeConfig
)),
0 < removedKeyCount &&
updatePayload &&
(restoreDeletedValuesInNestedArray(
updatePayload,
nextProp,
attributeConfig
),
(removedKeys = null));
}
for (var _propKey in prevProps)
void 0 === nextProps[_propKey] &&
(!(attributeConfig = validAttributes[_propKey]) ||
(updatePayload && void 0 !== updatePayload[_propKey]) ||
((prevProp = prevProps[_propKey]),
void 0 !== prevProp &&
("object" !== typeof attributeConfig ||
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
? (((updatePayload || (updatePayload = {}))[_propKey] = null),
removedKeys || (removedKeys = {}),
removedKeys[_propKey] ||
((removedKeys[_propKey] = !0), removedKeyCount++))
: (updatePayload = clearNestedProperty(
updatePayload,
prevProp,
attributeConfig
)))));
return updatePayload;
}
function addNestedProperty(payload, props, validAttributes) {
if (isArrayImpl(props)) {
for (var i = 0; i < props.length; i++)
payload = addNestedProperty(payload, props[i], validAttributes);
return payload;
}
for (i in props) {
var prop = props[i],
attributeConfig = validAttributes[i];
if (null != attributeConfig) {
var newValue = void 0;
if (void 0 === prop)
if (payload && void 0 !== payload[i]) newValue = null;
else continue;
else
"object" === typeof attributeConfig
? "function" === typeof attributeConfig.process
? (newValue = attributeConfig.process(prop))
: "function" === typeof attributeConfig.diff &&
(newValue = prop)
: (newValue = "function" === typeof prop ? !0 : prop);
void 0 !== newValue
? (payload || (payload = {}), (payload[i] = newValue))
: (payload = addNestedProperty(payload, prop, attributeConfig));
}
}
return payload;
}
function batchedUpdates$1(fn, bookkeeping) {
if (isInsideEventHandler) return fn(bookkeeping);
isInsideEventHandler = !0;
@@ -10025,8 +9779,7 @@ __DEV__ &&
b: {
var keepChildren = !current;
newChildSet = _type2 ? void 0 : newChildSet;
_oldProps = diffProperties(
null,
_oldProps = ReactNativePrivateInterface.diffAttributePayloads(
_oldProps,
newProps,
renderLanes.canonical.viewConfig.validAttributes
@@ -10084,8 +9837,7 @@ __DEV__ &&
ReactNativePrivateInterface.deepFreezeAndThrowOnMutationInDev(
newProps[keepChildren]
);
keepChildren = addNestedProperty(
null,
keepChildren = ReactNativePrivateInterface.createAttributePayload(
newProps,
_type2.validAttributes
);
@@ -16163,12 +15915,11 @@ __DEV__ &&
return DefaultEventPriority;
}
function cloneHiddenInstance(instance) {
var node = instance.node;
var updatePayload = addNestedProperty(
null,
{ style: { display: "none" } },
instance.canonical.viewConfig.validAttributes
);
var node = instance.node,
updatePayload = ReactNativePrivateInterface.createAttributePayload(
{ style: { display: "none" } },
instance.canonical.viewConfig.validAttributes
);
return {
node: cloneNodeWithNewProps(node, updatePayload),
canonical: instance.canonical
@@ -16966,11 +16717,7 @@ __DEV__ &&
}
}
});
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
deepDifferOptions = { unsafelyIgnoreFunctions: !0 },
isInsideEventHandler = !1,
var isInsideEventHandler = !1,
eventQueue = null,
scheduleCallback$3 = Scheduler.unstable_scheduleCallback,
cancelCallback$1 = Scheduler.unstable_cancelCallback,
@@ -19128,10 +18875,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9b5be4fd668f0c83fb4895d433a132ee>>
* @generated SignedSource<<7e84d6404be124f73be5a4cec976190d>>
*/
"use strict";
@@ -1241,7 +1241,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_292 = {
var injectedNamesToPlugins$jscomp$inline_288 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1287,268 +1287,32 @@ var injectedNamesToPlugins$jscomp$inline_292 = {
}
}
},
isOrderingDirty$jscomp$inline_293 = !1,
pluginName$jscomp$inline_294;
for (pluginName$jscomp$inline_294 in injectedNamesToPlugins$jscomp$inline_292)
isOrderingDirty$jscomp$inline_289 = !1,
pluginName$jscomp$inline_290;
for (pluginName$jscomp$inline_290 in injectedNamesToPlugins$jscomp$inline_288)
if (
injectedNamesToPlugins$jscomp$inline_292.hasOwnProperty(
pluginName$jscomp$inline_294
injectedNamesToPlugins$jscomp$inline_288.hasOwnProperty(
pluginName$jscomp$inline_290
)
) {
var pluginModule$jscomp$inline_295 =
injectedNamesToPlugins$jscomp$inline_292[pluginName$jscomp$inline_294];
var pluginModule$jscomp$inline_291 =
injectedNamesToPlugins$jscomp$inline_288[pluginName$jscomp$inline_290];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_294) ||
namesToPlugins[pluginName$jscomp$inline_294] !==
pluginModule$jscomp$inline_295
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_290) ||
namesToPlugins[pluginName$jscomp$inline_290] !==
pluginModule$jscomp$inline_291
) {
if (namesToPlugins[pluginName$jscomp$inline_294])
if (namesToPlugins[pluginName$jscomp$inline_290])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_294 + "`.")
(pluginName$jscomp$inline_290 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_294] =
pluginModule$jscomp$inline_295;
isOrderingDirty$jscomp$inline_293 = !0;
namesToPlugins[pluginName$jscomp$inline_290] =
pluginModule$jscomp$inline_291;
isOrderingDirty$jscomp$inline_289 = !0;
}
}
isOrderingDirty$jscomp$inline_293 && recomputePluginOrdering();
var emptyObject = {},
removedKeys = null,
removedKeyCount = 0,
deepDifferOptions = { unsafelyIgnoreFunctions: !0 };
function defaultDiffer(prevProp, nextProp) {
return "object" !== typeof nextProp || null === nextProp
? !0
: ReactNativePrivateInterface.deepDiffer(
prevProp,
nextProp,
deepDifferOptions
);
}
function restoreDeletedValuesInNestedArray(
updatePayload,
node,
validAttributes
) {
if (isArrayImpl(node))
for (var i = node.length; i-- && 0 < removedKeyCount; )
restoreDeletedValuesInNestedArray(
updatePayload,
node[i],
validAttributes
);
else if (node && 0 < removedKeyCount)
for (i in removedKeys)
if (removedKeys[i]) {
var nextProp = node[i];
if (void 0 !== nextProp) {
var attributeConfig = validAttributes[i];
if (attributeConfig) {
"function" === typeof nextProp && (nextProp = !0);
"undefined" === typeof nextProp && (nextProp = null);
if ("object" !== typeof attributeConfig)
updatePayload[i] = nextProp;
else if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
)
(nextProp =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
(updatePayload[i] = nextProp);
removedKeys[i] = !1;
removedKeyCount--;
}
}
}
}
function diffNestedProperty(
updatePayload,
prevProp,
nextProp,
validAttributes
) {
if (!updatePayload && prevProp === nextProp) return updatePayload;
if (!prevProp || !nextProp)
return nextProp
? addNestedProperty(updatePayload, nextProp, validAttributes)
: prevProp
? clearNestedProperty(updatePayload, prevProp, validAttributes)
: updatePayload;
if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp))
return diffProperties(updatePayload, prevProp, nextProp, validAttributes);
if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) {
var minLength =
prevProp.length < nextProp.length ? prevProp.length : nextProp.length,
i;
for (i = 0; i < minLength; i++)
updatePayload = diffNestedProperty(
updatePayload,
prevProp[i],
nextProp[i],
validAttributes
);
for (; i < prevProp.length; i++)
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes
);
for (; i < nextProp.length; i++)
(prevProp = nextProp[i]) &&
(updatePayload = addNestedProperty(
updatePayload,
prevProp,
validAttributes
));
return updatePayload;
}
return isArrayImpl(prevProp)
? diffProperties(
updatePayload,
ReactNativePrivateInterface.flattenStyle(prevProp),
nextProp,
validAttributes
)
: diffProperties(
updatePayload,
prevProp,
ReactNativePrivateInterface.flattenStyle(nextProp),
validAttributes
);
}
function clearNestedProperty(updatePayload, prevProp, validAttributes) {
if (!prevProp) return updatePayload;
if (!isArrayImpl(prevProp))
return diffProperties(
updatePayload,
prevProp,
emptyObject,
validAttributes
);
for (var i = 0; i < prevProp.length; i++)
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes
);
return updatePayload;
}
function diffProperties(updatePayload, prevProps, nextProps, validAttributes) {
var attributeConfig, propKey;
for (propKey in nextProps)
if ((attributeConfig = validAttributes[propKey])) {
var prevProp = prevProps[propKey];
var nextProp = nextProps[propKey];
"function" !== typeof nextProp ||
("object" === typeof attributeConfig &&
"function" === typeof attributeConfig.process) ||
((nextProp = !0), "function" === typeof prevProp && (prevProp = !0));
"undefined" === typeof nextProp &&
((nextProp = null),
"undefined" === typeof prevProp && (prevProp = null));
removedKeys && (removedKeys[propKey] = !1);
if (updatePayload && void 0 !== updatePayload[propKey])
if ("object" !== typeof attributeConfig)
updatePayload[propKey] = nextProp;
else {
if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
)
(attributeConfig =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
(updatePayload[propKey] = attributeConfig);
}
else if (prevProp !== nextProp)
if ("object" !== typeof attributeConfig)
defaultDiffer(prevProp, nextProp) &&
((updatePayload || (updatePayload = {}))[propKey] = nextProp);
else if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
) {
if (
void 0 === prevProp ||
("function" === typeof attributeConfig.diff
? attributeConfig.diff(prevProp, nextProp)
: defaultDiffer(prevProp, nextProp))
)
(attributeConfig =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
((updatePayload || (updatePayload = {}))[propKey] =
attributeConfig);
} else
(removedKeys = null),
(removedKeyCount = 0),
(updatePayload = diffNestedProperty(
updatePayload,
prevProp,
nextProp,
attributeConfig
)),
0 < removedKeyCount &&
updatePayload &&
(restoreDeletedValuesInNestedArray(
updatePayload,
nextProp,
attributeConfig
),
(removedKeys = null));
}
for (var propKey$6 in prevProps)
void 0 === nextProps[propKey$6] &&
(!(attributeConfig = validAttributes[propKey$6]) ||
(updatePayload && void 0 !== updatePayload[propKey$6]) ||
((prevProp = prevProps[propKey$6]),
void 0 !== prevProp &&
("object" !== typeof attributeConfig ||
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
? (((updatePayload || (updatePayload = {}))[propKey$6] = null),
removedKeys || (removedKeys = {}),
removedKeys[propKey$6] ||
((removedKeys[propKey$6] = !0), removedKeyCount++))
: (updatePayload = clearNestedProperty(
updatePayload,
prevProp,
attributeConfig
)))));
return updatePayload;
}
function addNestedProperty(payload, props, validAttributes) {
if (isArrayImpl(props)) {
for (var i = 0; i < props.length; i++)
payload = addNestedProperty(payload, props[i], validAttributes);
return payload;
}
for (i in props) {
var prop = props[i],
attributeConfig = validAttributes[i];
if (null != attributeConfig) {
var newValue = void 0;
if (void 0 === prop)
if (payload && void 0 !== payload[i]) newValue = null;
else continue;
else
"object" === typeof attributeConfig
? "function" === typeof attributeConfig.process
? (newValue = attributeConfig.process(prop))
: "function" === typeof attributeConfig.diff && (newValue = prop)
: (newValue = "function" === typeof prop ? !0 : prop);
void 0 !== newValue
? (payload || (payload = {}), (payload[i] = newValue))
: (payload = addNestedProperty(payload, prop, attributeConfig));
}
}
return payload;
}
isOrderingDirty$jscomp$inline_289 && recomputePluginOrdering();
function batchedUpdatesImpl(fn, bookkeeping) {
return fn(bookkeeping);
}
@@ -1843,18 +1607,18 @@ function markRootFinished(
0 < remainingLanes;
) {
var index$11 = 31 - clz32(remainingLanes),
lane = 1 << index$11;
entanglements[index$11] = 0;
expirationTimes[index$11] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$11];
var index$9 = 31 - clz32(remainingLanes),
lane = 1 << index$9;
entanglements[index$9] = 0;
expirationTimes[index$9] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$9];
if (null !== hiddenUpdatesForLane)
for (
hiddenUpdates[index$11] = null, index$11 = 0;
index$11 < hiddenUpdatesForLane.length;
index$11++
hiddenUpdates[index$9] = null, index$9 = 0;
index$9 < hiddenUpdatesForLane.length;
index$9++
) {
var update = hiddenUpdatesForLane[index$11];
var update = hiddenUpdatesForLane[index$9];
null !== update && (update.lane &= -536870913);
}
remainingLanes &= ~lane;
@@ -1878,10 +1642,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
function markRootEntangled(root, entangledLanes) {
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
for (root = root.entanglements; rootEntangledLanes; ) {
var index$12 = 31 - clz32(rootEntangledLanes),
lane = 1 << index$12;
(lane & entangledLanes) | (root[index$12] & entangledLanes) &&
(root[index$12] |= entangledLanes);
var index$10 = 31 - clz32(rootEntangledLanes),
lane = 1 << index$10;
(lane & entangledLanes) | (root[index$10] & entangledLanes) &&
(root[index$10] |= entangledLanes);
rootEntangledLanes &= ~lane;
}
}
@@ -1987,36 +1751,36 @@ function findCurrentFiberUsingSlowPath(fiber) {
}
if (a.return !== b.return) (a = parentA), (b = parentB);
else {
for (var didFindChild = !1, child$13 = parentA.child; child$13; ) {
if (child$13 === a) {
for (var didFindChild = !1, child$11 = parentA.child; child$11; ) {
if (child$11 === a) {
didFindChild = !0;
a = parentA;
b = parentB;
break;
}
if (child$13 === b) {
if (child$11 === b) {
didFindChild = !0;
b = parentA;
a = parentB;
break;
}
child$13 = child$13.sibling;
child$11 = child$11.sibling;
}
if (!didFindChild) {
for (child$13 = parentB.child; child$13; ) {
if (child$13 === a) {
for (child$11 = parentB.child; child$11; ) {
if (child$11 === a) {
didFindChild = !0;
a = parentB;
b = parentA;
break;
}
if (child$13 === b) {
if (child$11 === b) {
didFindChild = !0;
b = parentB;
a = parentA;
break;
}
child$13 = child$13.sibling;
child$11 = child$11.sibling;
}
if (!didFindChild)
throw Error(
@@ -2576,12 +2340,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
0 < lanes;
) {
var index$9 = 31 - clz32(lanes),
lane = 1 << index$9,
expirationTime = expirationTimes[index$9];
var index$7 = 31 - clz32(lanes),
lane = 1 << index$7,
expirationTime = expirationTimes[index$7];
if (-1 === expirationTime) {
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
expirationTimes[index$9] = computeExpirationTime(lane, currentTime);
expirationTimes[index$7] = computeExpirationTime(lane, currentTime);
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
lanes &= ~lane;
}
@@ -4287,7 +4051,7 @@ function updateReducerImpl(hook, current, reducer) {
var newBaseQueueFirst = (baseFirst = null),
newBaseQueueLast = null,
update = current,
didReadFromEntangledAsyncAction$48 = !1;
didReadFromEntangledAsyncAction$46 = !1;
do {
var updateLane = update.lane & -536870913;
if (
@@ -4309,11 +4073,11 @@ function updateReducerImpl(hook, current, reducer) {
next: null
}),
updateLane === currentEntangledLane &&
(didReadFromEntangledAsyncAction$48 = !0);
(didReadFromEntangledAsyncAction$46 = !0);
else if ((renderLanes & revertLane) === revertLane) {
update = update.next;
revertLane === currentEntangledLane &&
(didReadFromEntangledAsyncAction$48 = !0);
(didReadFromEntangledAsyncAction$46 = !0);
continue;
} else
(updateLane = {
@@ -4361,7 +4125,7 @@ function updateReducerImpl(hook, current, reducer) {
if (
!objectIs(pendingQueue, hook.memoizedState) &&
((didReceiveUpdate = !0),
didReadFromEntangledAsyncAction$48 &&
didReadFromEntangledAsyncAction$46 &&
((reducer = currentEntangledActionThenable), null !== reducer))
)
throw reducer;
@@ -4562,8 +4326,8 @@ function runActionStateAction(actionQueue, node) {
try {
(prevTransition = action(prevState, payload)),
handleActionReturnValue(actionQueue, node, prevTransition);
} catch (error$52) {
onActionError(actionQueue, node, error$52);
} catch (error$50) {
onActionError(actionQueue, node, error$50);
}
}
function handleActionReturnValue(actionQueue, node, returnValue) {
@@ -5464,9 +5228,9 @@ function resolveClassComponentProps(Component, baseProps) {
}
if ((Component = Component.defaultProps)) {
newProps === baseProps && (newProps = assign({}, newProps));
for (var propName$54 in Component)
void 0 === newProps[propName$54] &&
(newProps[propName$54] = Component[propName$54]);
for (var propName$52 in Component)
void 0 === newProps[propName$52] &&
(newProps[propName$52] = Component[propName$52]);
}
return newProps;
}
@@ -6792,9 +6556,9 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
);
break;
case 13:
var state$78 = workInProgress.memoizedState;
if (null !== state$78) {
if (null !== state$78.dehydrated)
var state$76 = workInProgress.memoizedState;
if (null !== state$76) {
if (null !== state$76.dehydrated)
return (
pushPrimaryTreeSuspenseHandler(workInProgress),
(workInProgress.flags |= 128),
@@ -6814,17 +6578,17 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
break;
case 19:
var didSuspendBefore = 0 !== (current.flags & 128);
state$78 = 0 !== (renderLanes & workInProgress.childLanes);
state$78 ||
state$76 = 0 !== (renderLanes & workInProgress.childLanes);
state$76 ||
(propagateParentContextChanges(
current,
workInProgress,
renderLanes,
!1
),
(state$78 = 0 !== (renderLanes & workInProgress.childLanes)));
(state$76 = 0 !== (renderLanes & workInProgress.childLanes)));
if (didSuspendBefore) {
if (state$78)
if (state$76)
return updateSuspenseListComponent(
current,
workInProgress,
@@ -6838,7 +6602,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
(didSuspendBefore.tail = null),
(didSuspendBefore.lastEffect = null));
push(suspenseStackCursor, suspenseStackCursor.current);
if (state$78) break;
if (state$76) break;
else return null;
case 22:
return (
@@ -7431,14 +7195,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
break;
case "collapsed":
lastTailNode = renderState.tail;
for (var lastTailNode$97 = null; null !== lastTailNode; )
null !== lastTailNode.alternate && (lastTailNode$97 = lastTailNode),
for (var lastTailNode$95 = null; null !== lastTailNode; )
null !== lastTailNode.alternate && (lastTailNode$95 = lastTailNode),
(lastTailNode = lastTailNode.sibling);
null === lastTailNode$97
null === lastTailNode$95
? hasRenderedATailFallback || null === renderState.tail
? (renderState.tail = null)
: (renderState.tail.sibling = null)
: (lastTailNode$97.sibling = null);
: (lastTailNode$95.sibling = null);
}
}
function bubbleProperties(completedWork) {
@@ -7448,19 +7212,19 @@ function bubbleProperties(completedWork) {
newChildLanes = 0,
subtreeFlags = 0;
if (didBailout)
for (var child$98 = completedWork.child; null !== child$98; )
(newChildLanes |= child$98.lanes | child$98.childLanes),
(subtreeFlags |= child$98.subtreeFlags & 65011712),
(subtreeFlags |= child$98.flags & 65011712),
(child$98.return = completedWork),
(child$98 = child$98.sibling);
for (var child$96 = completedWork.child; null !== child$96; )
(newChildLanes |= child$96.lanes | child$96.childLanes),
(subtreeFlags |= child$96.subtreeFlags & 65011712),
(subtreeFlags |= child$96.flags & 65011712),
(child$96.return = completedWork),
(child$96 = child$96.sibling);
else
for (child$98 = completedWork.child; null !== child$98; )
(newChildLanes |= child$98.lanes | child$98.childLanes),
(subtreeFlags |= child$98.subtreeFlags),
(subtreeFlags |= child$98.flags),
(child$98.return = completedWork),
(child$98 = child$98.sibling);
for (child$96 = completedWork.child; null !== child$96; )
(newChildLanes |= child$96.lanes | child$96.childLanes),
(subtreeFlags |= child$96.subtreeFlags),
(subtreeFlags |= child$96.flags),
(child$96.return = completedWork),
(child$96 = child$96.sibling);
completedWork.subtreeFlags |= subtreeFlags;
completedWork.childLanes = newChildLanes;
return didBailout;
@@ -7537,8 +7301,7 @@ function completeWork(current, workInProgress, renderLanes) {
)));
b: {
newChildSet = type ? void 0 : newChildSet;
oldProps = diffProperties(
null,
oldProps = ReactNativePrivateInterface.diffAttributePayloads(
oldProps,
newProps,
renderLanes.canonical.viewConfig.validAttributes
@@ -7588,7 +7351,10 @@ function completeWork(current, workInProgress, renderLanes) {
current = nextReactTag;
nextReactTag += 2;
type = getViewConfigForType(type);
oldProps = addNestedProperty(null, newProps, type.validAttributes);
oldProps = ReactNativePrivateInterface.createAttributePayload(
newProps,
type.validAttributes
);
oldProps = createNode(
current,
type.uiViewClassName,
@@ -8044,9 +7810,9 @@ function commitHookEffectListMount(flags, finishedWork) {
do {
if ((updateQueue.tag & flags) === flags) {
lastEffect = void 0;
var create$124 = updateQueue.create,
var create = updateQueue.create,
inst = updateQueue.inst;
lastEffect = create$124();
lastEffect = create();
inst.destroy = lastEffect;
}
updateQueue = updateQueue.next;
@@ -8169,8 +7935,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
else if ("function" === typeof ref)
try {
ref(null);
} catch (error$126) {
captureCommitPhaseError(current, nearestMountedAncestor, error$126);
} catch (error$123) {
captureCommitPhaseError(current, nearestMountedAncestor, error$123);
}
else ref.current = null;
}
@@ -8334,11 +8100,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
);
} catch (error$125) {
} catch (error$122) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$125
error$122
);
}
}
@@ -9837,9 +9603,9 @@ function markRootSuspended(
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$10 = 31 - clz32(lanes),
lane = 1 << index$10;
didAttemptEntireTree[index$10] = -1;
var index$8 = 31 - clz32(lanes),
lane = 1 << index$8;
didAttemptEntireTree[index$8] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -9896,9 +9662,9 @@ function prepareFreshStack(root, lanes) {
0 < allEntangledLanes;
) {
var index$8 = 31 - clz32(allEntangledLanes),
lane = 1 << index$8;
lanes |= root[index$8];
var index$6 = 31 - clz32(allEntangledLanes),
lane = 1 << index$6;
lanes |= root[index$6];
allEntangledLanes &= ~lane;
}
entangledRenderLanes = lanes;
@@ -10003,8 +9769,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
workLoopSync();
exitStatus = workInProgressRootExitStatus;
break;
} catch (thrownValue$139) {
handleThrow(root, thrownValue$139);
} catch (thrownValue$136) {
handleThrow(root, thrownValue$136);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -10119,8 +9885,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrentByScheduler();
break;
} catch (thrownValue$141) {
handleThrow(root, thrownValue$141);
} catch (thrownValue$138) {
handleThrow(root, thrownValue$138);
}
while (1);
lastContextDependency = currentlyRenderingFiber$1 = null;
@@ -11113,14 +10879,13 @@ function resolveUpdatePriority() {
var scheduleTimeout = setTimeout,
cancelTimeout = clearTimeout;
function cloneHiddenInstance(instance) {
var node = instance.node;
var JSCompiler_inline_result = addNestedProperty(
null,
{ style: { display: "none" } },
instance.canonical.viewConfig.validAttributes
);
var node = instance.node,
updatePayload = ReactNativePrivateInterface.createAttributePayload(
{ style: { display: "none" } },
instance.canonical.viewConfig.validAttributes
);
return {
node: cloneNodeWithNewProps(node, JSCompiler_inline_result),
node: cloneNodeWithNewProps(node, updatePayload),
canonical: instance.canonical
};
}
@@ -11262,26 +11027,26 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1269 = {
internals$jscomp$inline_1257 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1269.rendererConfig = extraDevToolsConfig);
(internals$jscomp$inline_1257.rendererConfig = extraDevToolsConfig);
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1592 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1576 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1592.isDisabled &&
hook$jscomp$inline_1592.supportsFiber
!hook$jscomp$inline_1576.isDisabled &&
hook$jscomp$inline_1576.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1592.inject(
internals$jscomp$inline_1269
(rendererID = hook$jscomp$inline_1576.inject(
internals$jscomp$inline_1257
)),
(injectedHook = hook$jscomp$inline_1592);
(injectedHook = hook$jscomp$inline_1576);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ff6b3fad0bf2a924304adcee73eb1173>>
* @generated SignedSource<<e00814911b0d7e6b98af158e8e66a4fa>>
*/
"use strict";
@@ -1247,7 +1247,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_329 = {
var injectedNamesToPlugins$jscomp$inline_325 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -1293,268 +1293,32 @@ var injectedNamesToPlugins$jscomp$inline_329 = {
}
}
},
isOrderingDirty$jscomp$inline_330 = !1,
pluginName$jscomp$inline_331;
for (pluginName$jscomp$inline_331 in injectedNamesToPlugins$jscomp$inline_329)
isOrderingDirty$jscomp$inline_326 = !1,
pluginName$jscomp$inline_327;
for (pluginName$jscomp$inline_327 in injectedNamesToPlugins$jscomp$inline_325)
if (
injectedNamesToPlugins$jscomp$inline_329.hasOwnProperty(
pluginName$jscomp$inline_331
injectedNamesToPlugins$jscomp$inline_325.hasOwnProperty(
pluginName$jscomp$inline_327
)
) {
var pluginModule$jscomp$inline_332 =
injectedNamesToPlugins$jscomp$inline_329[pluginName$jscomp$inline_331];
var pluginModule$jscomp$inline_328 =
injectedNamesToPlugins$jscomp$inline_325[pluginName$jscomp$inline_327];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_331) ||
namesToPlugins[pluginName$jscomp$inline_331] !==
pluginModule$jscomp$inline_332
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_327) ||
namesToPlugins[pluginName$jscomp$inline_327] !==
pluginModule$jscomp$inline_328
) {
if (namesToPlugins[pluginName$jscomp$inline_331])
if (namesToPlugins[pluginName$jscomp$inline_327])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_331 + "`.")
(pluginName$jscomp$inline_327 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_331] =
pluginModule$jscomp$inline_332;
isOrderingDirty$jscomp$inline_330 = !0;
namesToPlugins[pluginName$jscomp$inline_327] =
pluginModule$jscomp$inline_328;
isOrderingDirty$jscomp$inline_326 = !0;
}
}
isOrderingDirty$jscomp$inline_330 && recomputePluginOrdering();
var emptyObject = {},
removedKeys = null,
removedKeyCount = 0,
deepDifferOptions = { unsafelyIgnoreFunctions: !0 };
function defaultDiffer(prevProp, nextProp) {
return "object" !== typeof nextProp || null === nextProp
? !0
: ReactNativePrivateInterface.deepDiffer(
prevProp,
nextProp,
deepDifferOptions
);
}
function restoreDeletedValuesInNestedArray(
updatePayload,
node,
validAttributes
) {
if (isArrayImpl(node))
for (var i = node.length; i-- && 0 < removedKeyCount; )
restoreDeletedValuesInNestedArray(
updatePayload,
node[i],
validAttributes
);
else if (node && 0 < removedKeyCount)
for (i in removedKeys)
if (removedKeys[i]) {
var nextProp = node[i];
if (void 0 !== nextProp) {
var attributeConfig = validAttributes[i];
if (attributeConfig) {
"function" === typeof nextProp && (nextProp = !0);
"undefined" === typeof nextProp && (nextProp = null);
if ("object" !== typeof attributeConfig)
updatePayload[i] = nextProp;
else if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
)
(nextProp =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
(updatePayload[i] = nextProp);
removedKeys[i] = !1;
removedKeyCount--;
}
}
}
}
function diffNestedProperty(
updatePayload,
prevProp,
nextProp,
validAttributes
) {
if (!updatePayload && prevProp === nextProp) return updatePayload;
if (!prevProp || !nextProp)
return nextProp
? addNestedProperty(updatePayload, nextProp, validAttributes)
: prevProp
? clearNestedProperty(updatePayload, prevProp, validAttributes)
: updatePayload;
if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp))
return diffProperties(updatePayload, prevProp, nextProp, validAttributes);
if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) {
var minLength =
prevProp.length < nextProp.length ? prevProp.length : nextProp.length,
i;
for (i = 0; i < minLength; i++)
updatePayload = diffNestedProperty(
updatePayload,
prevProp[i],
nextProp[i],
validAttributes
);
for (; i < prevProp.length; i++)
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes
);
for (; i < nextProp.length; i++)
(prevProp = nextProp[i]) &&
(updatePayload = addNestedProperty(
updatePayload,
prevProp,
validAttributes
));
return updatePayload;
}
return isArrayImpl(prevProp)
? diffProperties(
updatePayload,
ReactNativePrivateInterface.flattenStyle(prevProp),
nextProp,
validAttributes
)
: diffProperties(
updatePayload,
prevProp,
ReactNativePrivateInterface.flattenStyle(nextProp),
validAttributes
);
}
function clearNestedProperty(updatePayload, prevProp, validAttributes) {
if (!prevProp) return updatePayload;
if (!isArrayImpl(prevProp))
return diffProperties(
updatePayload,
prevProp,
emptyObject,
validAttributes
);
for (var i = 0; i < prevProp.length; i++)
updatePayload = clearNestedProperty(
updatePayload,
prevProp[i],
validAttributes
);
return updatePayload;
}
function diffProperties(updatePayload, prevProps, nextProps, validAttributes) {
var attributeConfig, propKey;
for (propKey in nextProps)
if ((attributeConfig = validAttributes[propKey])) {
var prevProp = prevProps[propKey];
var nextProp = nextProps[propKey];
"function" !== typeof nextProp ||
("object" === typeof attributeConfig &&
"function" === typeof attributeConfig.process) ||
((nextProp = !0), "function" === typeof prevProp && (prevProp = !0));
"undefined" === typeof nextProp &&
((nextProp = null),
"undefined" === typeof prevProp && (prevProp = null));
removedKeys && (removedKeys[propKey] = !1);
if (updatePayload && void 0 !== updatePayload[propKey])
if ("object" !== typeof attributeConfig)
updatePayload[propKey] = nextProp;
else {
if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
)
(attributeConfig =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
(updatePayload[propKey] = attributeConfig);
}
else if (prevProp !== nextProp)
if ("object" !== typeof attributeConfig)
defaultDiffer(prevProp, nextProp) &&
((updatePayload || (updatePayload = {}))[propKey] = nextProp);
else if (
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
) {
if (
void 0 === prevProp ||
("function" === typeof attributeConfig.diff
? attributeConfig.diff(prevProp, nextProp)
: defaultDiffer(prevProp, nextProp))
)
(attributeConfig =
"function" === typeof attributeConfig.process
? attributeConfig.process(nextProp)
: nextProp),
((updatePayload || (updatePayload = {}))[propKey] =
attributeConfig);
} else
(removedKeys = null),
(removedKeyCount = 0),
(updatePayload = diffNestedProperty(
updatePayload,
prevProp,
nextProp,
attributeConfig
)),
0 < removedKeyCount &&
updatePayload &&
(restoreDeletedValuesInNestedArray(
updatePayload,
nextProp,
attributeConfig
),
(removedKeys = null));
}
for (var propKey$6 in prevProps)
void 0 === nextProps[propKey$6] &&
(!(attributeConfig = validAttributes[propKey$6]) ||
(updatePayload && void 0 !== updatePayload[propKey$6]) ||
((prevProp = prevProps[propKey$6]),
void 0 !== prevProp &&
("object" !== typeof attributeConfig ||
"function" === typeof attributeConfig.diff ||
"function" === typeof attributeConfig.process
? (((updatePayload || (updatePayload = {}))[propKey$6] = null),
removedKeys || (removedKeys = {}),
removedKeys[propKey$6] ||
((removedKeys[propKey$6] = !0), removedKeyCount++))
: (updatePayload = clearNestedProperty(
updatePayload,
prevProp,
attributeConfig
)))));
return updatePayload;
}
function addNestedProperty(payload, props, validAttributes) {
if (isArrayImpl(props)) {
for (var i = 0; i < props.length; i++)
payload = addNestedProperty(payload, props[i], validAttributes);
return payload;
}
for (i in props) {
var prop = props[i],
attributeConfig = validAttributes[i];
if (null != attributeConfig) {
var newValue = void 0;
if (void 0 === prop)
if (payload && void 0 !== payload[i]) newValue = null;
else continue;
else
"object" === typeof attributeConfig
? "function" === typeof attributeConfig.process
? (newValue = attributeConfig.process(prop))
: "function" === typeof attributeConfig.diff && (newValue = prop)
: (newValue = "function" === typeof prop ? !0 : prop);
void 0 !== newValue
? (payload || (payload = {}), (payload[i] = newValue))
: (payload = addNestedProperty(payload, prop, attributeConfig));
}
}
return payload;
}
isOrderingDirty$jscomp$inline_326 && recomputePluginOrdering();
function batchedUpdatesImpl(fn, bookkeeping) {
return fn(bookkeeping);
}
@@ -1897,18 +1661,18 @@ function markRootFinished(
0 < remainingLanes;
) {
var index$11 = 31 - clz32(remainingLanes),
lane = 1 << index$11;
entanglements[index$11] = 0;
expirationTimes[index$11] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$11];
var index$9 = 31 - clz32(remainingLanes),
lane = 1 << index$9;
entanglements[index$9] = 0;
expirationTimes[index$9] = -1;
var hiddenUpdatesForLane = hiddenUpdates[index$9];
if (null !== hiddenUpdatesForLane)
for (
hiddenUpdates[index$11] = null, index$11 = 0;
index$11 < hiddenUpdatesForLane.length;
index$11++
hiddenUpdates[index$9] = null, index$9 = 0;
index$9 < hiddenUpdatesForLane.length;
index$9++
) {
var update = hiddenUpdatesForLane[index$11];
var update = hiddenUpdatesForLane[index$9];
null !== update && (update.lane &= -536870913);
}
remainingLanes &= ~lane;
@@ -1932,10 +1696,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
function markRootEntangled(root, entangledLanes) {
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
for (root = root.entanglements; rootEntangledLanes; ) {
var index$12 = 31 - clz32(rootEntangledLanes),
lane = 1 << index$12;
(lane & entangledLanes) | (root[index$12] & entangledLanes) &&
(root[index$12] |= entangledLanes);
var index$10 = 31 - clz32(rootEntangledLanes),
lane = 1 << index$10;
(lane & entangledLanes) | (root[index$10] & entangledLanes) &&
(root[index$10] |= entangledLanes);
rootEntangledLanes &= ~lane;
}
}
@@ -1986,9 +1750,9 @@ function getBumpedLaneForHydration(root, renderLanes) {
function addFiberToLanesMap(root, fiber, lanes) {
if (isDevToolsPresent)
for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
var index$13 = 31 - clz32(lanes),
lane = 1 << index$13;
root[index$13].add(fiber);
var index$11 = 31 - clz32(lanes),
lane = 1 << index$11;
root[index$11].add(fiber);
lanes &= ~lane;
}
}
@@ -2000,16 +1764,16 @@ function movePendingFibersToMemoized(root, lanes) {
0 < lanes;
) {
var index$14 = 31 - clz32(lanes);
root = 1 << index$14;
index$14 = pendingUpdatersLaneMap[index$14];
0 < index$14.size &&
(index$14.forEach(function (fiber) {
var index$12 = 31 - clz32(lanes);
root = 1 << index$12;
index$12 = pendingUpdatersLaneMap[index$12];
0 < index$12.size &&
(index$12.forEach(function (fiber) {
var alternate = fiber.alternate;
(null !== alternate && memoizedUpdaters.has(alternate)) ||
memoizedUpdaters.add(fiber);
}),
index$14.clear());
index$12.clear());
lanes &= ~root;
}
}
@@ -2071,36 +1835,36 @@ function findCurrentFiberUsingSlowPath(fiber) {
}
if (a.return !== b.return) (a = parentA), (b = parentB);
else {
for (var didFindChild = !1, child$15 = parentA.child; child$15; ) {
if (child$15 === a) {
for (var didFindChild = !1, child$13 = parentA.child; child$13; ) {
if (child$13 === a) {
didFindChild = !0;
a = parentA;
b = parentB;
break;
}
if (child$15 === b) {
if (child$13 === b) {
didFindChild = !0;
b = parentA;
a = parentB;
break;
}
child$15 = child$15.sibling;
child$13 = child$13.sibling;
}
if (!didFindChild) {
for (child$15 = parentB.child; child$15; ) {
if (child$15 === a) {
for (child$13 = parentB.child; child$13; ) {
if (child$13 === a) {
didFindChild = !0;
a = parentB;
b = parentA;
break;
}
if (child$15 === b) {
if (child$13 === b) {
didFindChild = !0;
b = parentB;
a = parentA;
break;
}
child$15 = child$15.sibling;
child$13 = child$13.sibling;
}
if (!didFindChild)
throw Error(
@@ -2944,12 +2708,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
0 < lanes;
) {
var index$9 = 31 - clz32(lanes),
lane = 1 << index$9,
expirationTime = expirationTimes[index$9];
var index$7 = 31 - clz32(lanes),
lane = 1 << index$7,
expirationTime = expirationTimes[index$7];
if (-1 === expirationTime) {
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
expirationTimes[index$9] = computeExpirationTime(lane, currentTime);
expirationTimes[index$7] = computeExpirationTime(lane, currentTime);
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
lanes &= ~lane;
}
@@ -4677,7 +4441,7 @@ function updateReducerImpl(hook, current, reducer) {
var newBaseQueueFirst = (baseFirst = null),
newBaseQueueLast = null,
update = current,
didReadFromEntangledAsyncAction$53 = !1;
didReadFromEntangledAsyncAction$51 = !1;
do {
var updateLane = update.lane & -536870913;
if (
@@ -4699,11 +4463,11 @@ function updateReducerImpl(hook, current, reducer) {
next: null
}),
updateLane === currentEntangledLane &&
(didReadFromEntangledAsyncAction$53 = !0);
(didReadFromEntangledAsyncAction$51 = !0);
else if ((renderLanes & revertLane) === revertLane) {
update = update.next;
revertLane === currentEntangledLane &&
(didReadFromEntangledAsyncAction$53 = !0);
(didReadFromEntangledAsyncAction$51 = !0);
continue;
} else
(updateLane = {
@@ -4751,7 +4515,7 @@ function updateReducerImpl(hook, current, reducer) {
if (
!objectIs(pendingQueue, hook.memoizedState) &&
((didReceiveUpdate = !0),
didReadFromEntangledAsyncAction$53 &&
didReadFromEntangledAsyncAction$51 &&
((reducer = currentEntangledActionThenable), null !== reducer))
)
throw reducer;
@@ -4953,8 +4717,8 @@ function runActionStateAction(actionQueue, node) {
try {
(prevTransition = action(prevState, payload)),
handleActionReturnValue(actionQueue, node, prevTransition);
} catch (error$57) {
onActionError(actionQueue, node, error$57);
} catch (error$55) {
onActionError(actionQueue, node, error$55);
}
}
function handleActionReturnValue(actionQueue, node, returnValue) {
@@ -5870,9 +5634,9 @@ function resolveClassComponentProps(Component, baseProps) {
}
if ((Component = Component.defaultProps)) {
newProps === baseProps && (newProps = assign({}, newProps));
for (var propName$59 in Component)
void 0 === newProps[propName$59] &&
(newProps[propName$59] = Component[propName$59]);
for (var propName$57 in Component)
void 0 === newProps[propName$57] &&
(newProps[propName$57] = Component[propName$57]);
}
return newProps;
}
@@ -7877,14 +7641,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
break;
case "collapsed":
lastTailNode = renderState.tail;
for (var lastTailNode$103 = null; null !== lastTailNode; )
null !== lastTailNode.alternate && (lastTailNode$103 = lastTailNode),
for (var lastTailNode$101 = null; null !== lastTailNode; )
null !== lastTailNode.alternate && (lastTailNode$101 = lastTailNode),
(lastTailNode = lastTailNode.sibling);
null === lastTailNode$103
null === lastTailNode$101
? hasRenderedATailFallback || null === renderState.tail
? (renderState.tail = null)
: (renderState.tail.sibling = null)
: (lastTailNode$103.sibling = null);
: (lastTailNode$101.sibling = null);
}
}
function bubbleProperties(completedWork) {
@@ -7896,53 +7660,53 @@ function bubbleProperties(completedWork) {
if (didBailout)
if (0 !== (completedWork.mode & 2)) {
for (
var treeBaseDuration$105 = completedWork.selfBaseDuration,
child$106 = completedWork.child;
null !== child$106;
var treeBaseDuration$103 = completedWork.selfBaseDuration,
child$104 = completedWork.child;
null !== child$104;
)
(newChildLanes |= child$106.lanes | child$106.childLanes),
(subtreeFlags |= child$106.subtreeFlags & 65011712),
(subtreeFlags |= child$106.flags & 65011712),
(treeBaseDuration$105 += child$106.treeBaseDuration),
(child$106 = child$106.sibling);
completedWork.treeBaseDuration = treeBaseDuration$105;
(newChildLanes |= child$104.lanes | child$104.childLanes),
(subtreeFlags |= child$104.subtreeFlags & 65011712),
(subtreeFlags |= child$104.flags & 65011712),
(treeBaseDuration$103 += child$104.treeBaseDuration),
(child$104 = child$104.sibling);
completedWork.treeBaseDuration = treeBaseDuration$103;
} else
for (
treeBaseDuration$105 = completedWork.child;
null !== treeBaseDuration$105;
treeBaseDuration$103 = completedWork.child;
null !== treeBaseDuration$103;
)
(newChildLanes |=
treeBaseDuration$105.lanes | treeBaseDuration$105.childLanes),
(subtreeFlags |= treeBaseDuration$105.subtreeFlags & 65011712),
(subtreeFlags |= treeBaseDuration$105.flags & 65011712),
(treeBaseDuration$105.return = completedWork),
(treeBaseDuration$105 = treeBaseDuration$105.sibling);
treeBaseDuration$103.lanes | treeBaseDuration$103.childLanes),
(subtreeFlags |= treeBaseDuration$103.subtreeFlags & 65011712),
(subtreeFlags |= treeBaseDuration$103.flags & 65011712),
(treeBaseDuration$103.return = completedWork),
(treeBaseDuration$103 = treeBaseDuration$103.sibling);
else if (0 !== (completedWork.mode & 2)) {
treeBaseDuration$105 = completedWork.actualDuration;
child$106 = completedWork.selfBaseDuration;
treeBaseDuration$103 = completedWork.actualDuration;
child$104 = completedWork.selfBaseDuration;
for (var child = completedWork.child; null !== child; )
(newChildLanes |= child.lanes | child.childLanes),
(subtreeFlags |= child.subtreeFlags),
(subtreeFlags |= child.flags),
(treeBaseDuration$105 += child.actualDuration),
(child$106 += child.treeBaseDuration),
(treeBaseDuration$103 += child.actualDuration),
(child$104 += child.treeBaseDuration),
(child = child.sibling);
completedWork.actualDuration = treeBaseDuration$105;
completedWork.treeBaseDuration = child$106;
completedWork.actualDuration = treeBaseDuration$103;
completedWork.treeBaseDuration = child$104;
} else
for (
treeBaseDuration$105 = completedWork.child;
null !== treeBaseDuration$105;
treeBaseDuration$103 = completedWork.child;
null !== treeBaseDuration$103;
)
(newChildLanes |=
treeBaseDuration$105.lanes | treeBaseDuration$105.childLanes),
(subtreeFlags |= treeBaseDuration$105.subtreeFlags),
(subtreeFlags |= treeBaseDuration$105.flags),
(treeBaseDuration$105.return = completedWork),
(treeBaseDuration$105 = treeBaseDuration$105.sibling);
treeBaseDuration$103.lanes | treeBaseDuration$103.childLanes),
(subtreeFlags |= treeBaseDuration$103.subtreeFlags),
(subtreeFlags |= treeBaseDuration$103.flags),
(treeBaseDuration$103.return = completedWork),
(treeBaseDuration$103 = treeBaseDuration$103.sibling);
completedWork.subtreeFlags |= subtreeFlags;
completedWork.childLanes = newChildLanes;
return didBailout;
@@ -8019,8 +7783,7 @@ function completeWork(current, workInProgress, renderLanes) {
)));
b: {
newChildSet = type ? void 0 : newChildSet;
oldProps = diffProperties(
null,
oldProps = ReactNativePrivateInterface.diffAttributePayloads(
oldProps,
newProps,
renderLanes.canonical.viewConfig.validAttributes
@@ -8070,7 +7833,10 @@ function completeWork(current, workInProgress, renderLanes) {
current = nextReactTag;
nextReactTag += 2;
type = getViewConfigForType(type);
oldProps = addNestedProperty(null, newProps, type.validAttributes);
oldProps = ReactNativePrivateInterface.createAttributePayload(
newProps,
type.validAttributes
);
oldProps = createNode(
current,
type.uiViewClassName,
@@ -8602,9 +8368,9 @@ function commitHookEffectListMount(flags, finishedWork) {
finishedWork
);
lastEffect = void 0;
var create$137 = updateQueue.create,
var create = updateQueue.create,
inst = updateQueue.inst;
lastEffect = create$137();
lastEffect = create();
inst.destroy = lastEffect;
0 !== (flags & 8)
? null !== injectedProfilingHooks &&
@@ -8744,8 +8510,8 @@ function safelyCallComponentWillUnmount(
} else
try {
instance.componentWillUnmount();
} catch (error$141) {
captureCommitPhaseError(current, nearestMountedAncestor, error$141);
} catch (error$138) {
captureCommitPhaseError(current, nearestMountedAncestor, error$138);
}
}
function safelyAttachRef(current, nearestMountedAncestor) {
@@ -8814,8 +8580,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
recordEffectDuration(current);
}
else ref(null);
} catch (error$142) {
captureCommitPhaseError(current, nearestMountedAncestor, error$142);
} catch (error$139) {
captureCommitPhaseError(current, nearestMountedAncestor, error$139);
}
else ref.current = null;
}
@@ -9020,11 +8786,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
} else
try {
finishedRoot.componentDidMount();
} catch (error$138) {
} catch (error$135) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$138
error$135
);
}
else {
@@ -9041,11 +8807,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
);
} catch (error$139) {
} catch (error$136) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$139
error$136
);
}
recordEffectDuration();
@@ -9056,11 +8822,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
);
} catch (error$140) {
} catch (error$137) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$140
error$137
);
}
}
@@ -11262,9 +11028,9 @@ function markRootSuspended(
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
didAttemptEntireTree = root.expirationTimes;
for (var lanes = suspendedLanes; 0 < lanes; ) {
var index$10 = 31 - clz32(lanes),
lane = 1 << index$10;
didAttemptEntireTree[index$10] = -1;
var index$8 = 31 - clz32(lanes),
lane = 1 << index$8;
didAttemptEntireTree[index$8] = -1;
lanes &= ~lane;
}
0 !== spawnedLane &&
@@ -11664,8 +11430,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
workLoopSync();
memoizedUpdaters = workInProgressRootExitStatus;
break;
} catch (thrownValue$174) {
handleThrow(root, thrownValue$174);
} catch (thrownValue$171) {
handleThrow(root, thrownValue$171);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -11788,8 +11554,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrentByScheduler();
break;
} catch (thrownValue$176) {
handleThrow(root, thrownValue$176);
} catch (thrownValue$173) {
handleThrow(root, thrownValue$173);
}
while (1);
lastContextDependency = currentlyRenderingFiber$1 = null;
@@ -13016,14 +12782,13 @@ function resolveUpdatePriority() {
var scheduleTimeout = setTimeout,
cancelTimeout = clearTimeout;
function cloneHiddenInstance(instance) {
var node = instance.node;
var JSCompiler_inline_result = addNestedProperty(
null,
{ style: { display: "none" } },
instance.canonical.viewConfig.validAttributes
);
var node = instance.node,
updatePayload = ReactNativePrivateInterface.createAttributePayload(
{ style: { display: "none" } },
instance.canonical.viewConfig.validAttributes
);
return {
node: cloneNodeWithNewProps(node, JSCompiler_inline_result),
node: cloneNodeWithNewProps(node, updatePayload),
canonical: instance.canonical
};
}
@@ -13165,20 +12930,20 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1502 = {
internals$jscomp$inline_1490 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1502.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1502.getLaneLabelMap = function () {
(internals$jscomp$inline_1490.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1490.getLaneLabelMap = function () {
for (
var map = new Map(), lane = 1, index$180 = 0;
31 > index$180;
index$180++
var map = new Map(), lane = 1, index$177 = 0;
31 > index$177;
index$177++
) {
var label = getLabelForLane(lane);
map.set(lane, label);
@@ -13186,20 +12951,20 @@ internals$jscomp$inline_1502.getLaneLabelMap = function () {
}
return map;
};
internals$jscomp$inline_1502.injectProfilingHooks = function (profilingHooks) {
internals$jscomp$inline_1490.injectProfilingHooks = function (profilingHooks) {
injectedProfilingHooks = profilingHooks;
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1827 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1811 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1827.isDisabled &&
hook$jscomp$inline_1827.supportsFiber
!hook$jscomp$inline_1811.isDisabled &&
hook$jscomp$inline_1811.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1827.inject(
internals$jscomp$inline_1502
(rendererID = hook$jscomp$inline_1811.inject(
internals$jscomp$inline_1490
)),
(injectedHook = hook$jscomp$inline_1827);
(injectedHook = hook$jscomp$inline_1811);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5eb5e53607b2f064d5108c4ca5ac8ca4>>
* @generated SignedSource<<f9621ed3b0fa2d4c52c8182f63e7744f>>
*/
"use strict";
@@ -19208,11 +19208,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-e67b4fe2-20250624" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-7a3ffef7-20250625" !== 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.2.0-native-fb-e67b4fe2-20250624\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -19238,10 +19238,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b2abe460353d5ed15b877a4da5fac953>>
* @generated SignedSource<<5454d3dba6b39f01f33d0a66d9f20bee>>
*/
"use strict";
@@ -11221,11 +11221,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-e67b4fe2-20250624" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-7a3ffef7-20250625" !== 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.2.0-native-fb-e67b4fe2-20250624\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11275,10 +11275,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1313 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1313.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b33db9167456680c9a202a72631806c6>>
* @generated SignedSource<<8025e3ff7471c9bdb3cb246173ac690b>>
*/
"use strict";
@@ -13113,11 +13113,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-e67b4fe2-20250624" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-7a3ffef7-20250625" !== 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.2.0-native-fb-e67b4fe2-20250624\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-7a3ffef7-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -13167,10 +13167,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1546 = {
bundleType: 0,
version: "19.2.0-native-fb-e67b4fe2-20250624",
version: "19.2.0-native-fb-7a3ffef7-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-e67b4fe2-20250624"
reconcilerVersion: "19.2.0-native-fb-7a3ffef7-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1546.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noformat
* @nolint
* @flow strict
* @generated SignedSource<<4216c04f5a8c40a833b0146588fab5fa>>
* @generated SignedSource<<6166de7ecbfb5d83e56c11a3b6cde9ba>>
*/
import type {
@@ -35,15 +35,6 @@ export type AttributeType<T, V> =
export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
export type AttributeConfiguration = $ReadOnly<{
[propName: string]: AnyAttributeType,
style: $ReadOnly<{
[propName: string]: AnyAttributeType,
...
}>,
...
}>;
export type PartialAttributeConfiguration = $ReadOnly<{
[propName: string]: AnyAttributeType,
style?: $ReadOnly<{
[propName: string]: AnyAttributeType,
@@ -84,7 +75,7 @@ export type PartialViewConfig = $ReadOnly<{
directEventTypes?: ViewConfig['directEventTypes'],
supportsRawText?: boolean,
uiViewClassName: string,
validAttributes?: PartialAttributeConfiguration,
validAttributes?: AttributeConfiguration,
}>;
type InspectorDataProps = $ReadOnly<{
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-e67b4fe2-20250624",
"version": "0.0.0-experimental-7a3ffef7-20250625",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",