[0.81] Sync React 19.1.4 into React Native (#54846)

* Sync React 19.1.2 into React Native

* sign files imported from the React repo

* run yarn build-types

* Sync React 19.1.4 into React Native

* Fix lint

* Sign files synched from React

---------

Co-authored-by: Riccardo Cipolleschi <cipolleschi@meta.com>
This commit is contained in:
Gabriel Donadel Dall'AgnolandRiccardo Cipolleschi authored and GitHub committed 2025-12-23 20:35:31 +01:00
1 parent d32eff8dcc
commit b935c53875
16 files changed
+250 -173

No files matched your search

+4 -4
View File
@@ -55,7 +55,7 @@
"@react-native/metro-babel-transformer": "0.81.5",
"@react-native/metro-config": "0.81.5",
"@tsconfig/node22": "22.0.2",
"@types/react": "^19.1.0",
"@types/react": "^19.1.4",
"@typescript-eslint/parser": "^7.1.1",
"ansi-styles": "^4.2.1",
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
@@ -98,8 +98,8 @@
"nullthrows": "^1.1.1",
"prettier": "2.8.8",
"prettier-plugin-hermes-parser": "0.29.1",
"react": "19.1.0",
"react-test-renderer": "19.1.0",
"react": "19.1.4",
"react-test-renderer": "19.1.4",
"rimraf": "^3.0.2",
"shelljs": "^0.8.5",
"signedsource": "^1.0.0",
@@ -111,6 +111,6 @@
},
"resolutions": {
"eslint-plugin-react-hooks": "6.1.0-canary-12bc60f5-20250613",
"react-is": "19.1.0"
"react-is": "19.1.4"
}
}
+1 -1
View File
@@ -20,7 +20,7 @@
],
"dependencies": {},
"peerDependencies": {
"@types/react": "^19.1.0",
"@types/react": "^19.1.4",
"react": "*",
"react-native": "*"
},
@@ -24,7 +24,7 @@
"@react-native/codegen": "0.81.5"
},
"peerDependencies": {
"@types/react": "^19.1.0",
"@types/react": "^19.1.4",
"react": "*",
"react-native": "*"
},
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6b3694149dd8856f0c741d3d94e05646>>
* @generated SignedSource<<0a9190c24f2d3b192c825b739cc40628>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -410,7 +410,7 @@ __DEV__ &&
prevPrepareStackTrace = error.indexOf("\n");
-1 !== prevPrepareStackTrace &&
(error = error.slice(prevPrepareStackTrace + 1));
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
-1 !== prevPrepareStackTrace &&
(prevPrepareStackTrace = error.lastIndexOf(
"\n",
@@ -8990,12 +8990,10 @@ __DEV__ &&
function updateHostContainer(current, workInProgress) {
if (doesRequireClone(current, workInProgress)) {
current = workInProgress.stateNode;
var container = current.containerInfo,
newChildSet = createChildNodeSet();
var newChildSet = createChildNodeSet();
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
current.pendingChildren = newChildSet;
workInProgress.flags |= 4;
completeRoot(container.containerTag, newChildSet);
}
}
function scheduleRetryEffect(workInProgress, retryQueue) {
@@ -13805,7 +13803,9 @@ __DEV__ &&
canonical: instance.canonical
};
}
function replaceContainerChildren() {}
function replaceContainerChildren(container, newChildren) {
completeRoot(container.containerTag, newChildren);
}
function nativeOnUncaughtError(error, errorInfo) {
!1 !==
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
@@ -15880,7 +15880,7 @@ __DEV__ &&
}
};
var callComponent = {
"react-stack-bottom-frame": function (Component, props, secondArg) {
react_stack_bottom_frame: function (Component, props, secondArg) {
var wasRendering = isRendering;
isRendering = !0;
try {
@@ -15891,9 +15891,9 @@ __DEV__ &&
}
},
callComponentInDEV =
callComponent["react-stack-bottom-frame"].bind(callComponent),
callComponent.react_stack_bottom_frame.bind(callComponent),
callRender = {
"react-stack-bottom-frame": function (instance) {
react_stack_bottom_frame: function (instance) {
var wasRendering = isRendering;
isRendering = !0;
try {
@@ -15903,9 +15903,9 @@ __DEV__ &&
}
}
},
callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender),
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
callComponentDidMount = {
"react-stack-bottom-frame": function (finishedWork, instance) {
react_stack_bottom_frame: function (finishedWork, instance) {
try {
instance.componentDidMount();
} catch (error) {
@@ -15913,11 +15913,12 @@ __DEV__ &&
}
}
},
callComponentDidMountInDEV = callComponentDidMount[
"react-stack-bottom-frame"
].bind(callComponentDidMount),
callComponentDidMountInDEV =
callComponentDidMount.react_stack_bottom_frame.bind(
callComponentDidMount
),
callComponentDidUpdate = {
"react-stack-bottom-frame": function (
react_stack_bottom_frame: function (
finishedWork,
instance,
prevProps,
@@ -15931,22 +15932,24 @@ __DEV__ &&
}
}
},
callComponentDidUpdateInDEV = callComponentDidUpdate[
"react-stack-bottom-frame"
].bind(callComponentDidUpdate),
callComponentDidUpdateInDEV =
callComponentDidUpdate.react_stack_bottom_frame.bind(
callComponentDidUpdate
),
callComponentDidCatch = {
"react-stack-bottom-frame": function (instance, errorInfo) {
react_stack_bottom_frame: function (instance, errorInfo) {
var stack = errorInfo.stack;
instance.componentDidCatch(errorInfo.value, {
componentStack: null !== stack ? stack : ""
});
}
},
callComponentDidCatchInDEV = callComponentDidCatch[
"react-stack-bottom-frame"
].bind(callComponentDidCatch),
callComponentDidCatchInDEV =
callComponentDidCatch.react_stack_bottom_frame.bind(
callComponentDidCatch
),
callComponentWillUnmount = {
"react-stack-bottom-frame": function (
react_stack_bottom_frame: function (
current,
nearestMountedAncestor,
instance
@@ -15958,11 +15961,12 @@ __DEV__ &&
}
}
},
callComponentWillUnmountInDEV = callComponentWillUnmount[
"react-stack-bottom-frame"
].bind(callComponentWillUnmount),
callComponentWillUnmountInDEV =
callComponentWillUnmount.react_stack_bottom_frame.bind(
callComponentWillUnmount
),
callCreate = {
"react-stack-bottom-frame": function (effect) {
react_stack_bottom_frame: function (effect) {
null != effect.resourceKind &&
console.error(
"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",
@@ -15974,9 +15978,9 @@ __DEV__ &&
return (effect.destroy = create);
}
},
callCreateInDEV = callCreate["react-stack-bottom-frame"].bind(callCreate),
callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate),
callDestroy = {
"react-stack-bottom-frame": function (
react_stack_bottom_frame: function (
current,
nearestMountedAncestor,
destroy
@@ -15988,16 +15992,15 @@ __DEV__ &&
}
}
},
callDestroyInDEV =
callDestroy["react-stack-bottom-frame"].bind(callDestroy),
callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy),
callLazyInit = {
"react-stack-bottom-frame": function (lazy) {
react_stack_bottom_frame: function (lazy) {
var init = lazy._init;
return init(lazy._payload);
}
},
callLazyInitInDEV =
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
thenableState = null,
thenableIndexCounter = 0,
currentDebugInfo = null,
@@ -16616,10 +16619,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0",
version: "19.1.4",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0"
reconcilerVersion: "19.1.4"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7430b56dac3186eca669ae53bbf1f23d>>
* @generated SignedSource<<2f18cb243e8359f63183cac5a14f5f9c>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -7013,12 +7013,10 @@ function appendAllChildrenToContainer(
function updateHostContainer(current, workInProgress) {
if (doesRequireClone(current, workInProgress)) {
current = workInProgress.stateNode;
var container = current.containerInfo,
newChildSet = createChildNodeSet();
var newChildSet = createChildNodeSet();
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
current.pendingChildren = newChildSet;
workInProgress.flags |= 4;
completeRoot(container.containerTag, newChildSet);
}
}
function scheduleRetryEffect(workInProgress, retryQueue) {
@@ -7679,6 +7677,18 @@ function commitHostMount(finishedWork) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostPortalContainerChildren(
portal,
finishedWork,
pendingChildren
) {
portal = portal.containerInfo;
try {
completeRoot(portal.containerTag, pendingChildren);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
var offscreenSubtreeIsHidden = !1,
offscreenSubtreeWasHidden = !1,
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
@@ -7917,7 +7927,11 @@ function commitDeletionEffectsOnFiber(
case 18:
break;
case 4:
createChildNodeSet();
commitHostPortalContainerChildren(
deletedFiber.stateNode,
deletedFiber,
createChildNodeSet()
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -8062,9 +8076,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
null !== finishedWork &&
((flags = finishedWork.callbacks),
null !== flags &&
((current = finishedWork.shared.hiddenCallbacks),
((root = finishedWork.shared.hiddenCallbacks),
(finishedWork.shared.hiddenCallbacks =
null === current ? flags : current.concat(flags)))));
null === root ? flags : root.concat(flags)))));
break;
case 26:
case 27:
@@ -8085,10 +8099,25 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
case 3:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
if (flags & 4) {
flags = root.containerInfo;
root = root.pendingChildren;
try {
completeRoot(flags.containerTag, root);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
break;
case 4:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 4 &&
commitHostPortalContainerChildren(
finishedWork.stateNode,
finishedWork,
finishedWork.stateNode.pendingChildren
);
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -8098,9 +8127,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.child.flags & 8192 &&
((current = null !== current && null !== current.memoizedState),
((root = null !== current && null !== current.memoizedState),
null === finishedWork.memoizedState ||
current ||
root ||
(globalMostRecentFallbackTime = now()));
flags & 4 &&
((flags = finishedWork.updateQueue),
@@ -8136,10 +8165,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
flags & 4 &&
((flags = finishedWork.updateQueue),
null !== flags &&
((current = flags.retryQueue),
null !== current &&
((root = flags.retryQueue),
null !== root &&
((flags.retryQueue = null),
attachSuspenseRetryListeners(finishedWork, current))));
attachSuspenseRetryListeners(finishedWork, root))));
break;
case 19:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -10415,26 +10444,26 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1206 = {
internals$jscomp$inline_1203 = {
bundleType: 0,
version: "19.1.0",
version: "19.1.4",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0"
reconcilerVersion: "19.1.4"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1206.rendererConfig = extraDevToolsConfig);
(internals$jscomp$inline_1203.rendererConfig = extraDevToolsConfig);
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1519 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1515 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1519.isDisabled &&
hook$jscomp$inline_1519.supportsFiber
!hook$jscomp$inline_1515.isDisabled &&
hook$jscomp$inline_1515.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1519.inject(
internals$jscomp$inline_1206
(rendererID = hook$jscomp$inline_1515.inject(
internals$jscomp$inline_1203
)),
(injectedHook = hook$jscomp$inline_1519);
(injectedHook = hook$jscomp$inline_1515);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<cf19390911979c415bb5e95c5270fba6>>
* @generated SignedSource<<2ca775899397e07eec3078bd4d07ae93>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -7194,12 +7194,10 @@ function appendAllChildrenToContainer(
function updateHostContainer(current, workInProgress) {
if (doesRequireClone(current, workInProgress)) {
current = workInProgress.stateNode;
var container = current.containerInfo,
newChildSet = createChildNodeSet();
var newChildSet = createChildNodeSet();
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
current.pendingChildren = newChildSet;
workInProgress.flags |= 4;
completeRoot(container.containerTag, newChildSet);
}
}
function scheduleRetryEffect(workInProgress, retryQueue) {
@@ -8083,6 +8081,18 @@ function commitHostMount(finishedWork) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostPortalContainerChildren(
portal,
finishedWork,
pendingChildren
) {
portal = portal.containerInfo;
try {
completeRoot(portal.containerTag, pendingChildren);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
var offscreenSubtreeIsHidden = !1,
offscreenSubtreeWasHidden = !1,
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
@@ -8363,7 +8373,11 @@ function commitDeletionEffectsOnFiber(
case 18:
break;
case 4:
createChildNodeSet();
commitHostPortalContainerChildren(
deletedFiber.stateNode,
deletedFiber,
createChildNodeSet()
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -8538,14 +8552,29 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
commitReconciliationEffects(finishedWork);
break;
case 3:
flags = pushNestedEffectDurations();
current = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
root.effectDuration += popNestedEffectDurations(flags);
if (flags & 4) {
flags = root.containerInfo;
var pendingChildren = root.pendingChildren;
try {
completeRoot(flags.containerTag, pendingChildren);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
root.effectDuration += popNestedEffectDurations(current);
break;
case 4:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
flags & 4 &&
commitHostPortalContainerChildren(
finishedWork.stateNode,
finishedWork,
finishedWork.stateNode.pendingChildren
);
break;
case 12:
flags = pushNestedEffectDurations();
@@ -8569,12 +8598,13 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
attachSuspenseRetryListeners(finishedWork, root)));
break;
case 22:
var isHidden = null !== finishedWork.memoizedState,
wasHidden = null !== current && null !== current.memoizedState;
pendingChildren = null !== finishedWork.memoizedState;
var wasHidden = null !== current && null !== current.memoizedState;
if (finishedWork.mode & 1) {
var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,
prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || isHidden;
offscreenSubtreeIsHidden =
prevOffscreenSubtreeIsHidden || pendingChildren;
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden;
recursivelyTraverseMutationEffects(root, finishedWork);
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
@@ -8583,10 +8613,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
commitReconciliationEffects(finishedWork);
flags & 8192 &&
((root = finishedWork.stateNode),
(root._visibility = isHidden
(root._visibility = pendingChildren
? root._visibility & -2
: root._visibility | 1),
isHidden &&
pendingChildren &&
(null === current ||
wasHidden ||
offscreenSubtreeIsHidden ||
@@ -11055,16 +11085,16 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
internals$jscomp$inline_1299 = {
internals$jscomp$inline_1296 = {
bundleType: 0,
version: "19.1.0",
version: "19.1.4",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0"
reconcilerVersion: "19.1.4"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1299.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1299.getLaneLabelMap = function () {
(internals$jscomp$inline_1296.rendererConfig = extraDevToolsConfig);
internals$jscomp$inline_1296.getLaneLabelMap = function () {
for (
var map = new Map(), lane = 1, index$152 = 0;
31 > index$152;
@@ -11076,20 +11106,20 @@ internals$jscomp$inline_1299.getLaneLabelMap = function () {
}
return map;
};
internals$jscomp$inline_1299.injectProfilingHooks = function (profilingHooks) {
internals$jscomp$inline_1296.injectProfilingHooks = function (profilingHooks) {
injectedProfilingHooks = profilingHooks;
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1578 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1574 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1578.isDisabled &&
hook$jscomp$inline_1578.supportsFiber
!hook$jscomp$inline_1574.isDisabled &&
hook$jscomp$inline_1574.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1578.inject(
internals$jscomp$inline_1299
(rendererID = hook$jscomp$inline_1574.inject(
internals$jscomp$inline_1296
)),
(injectedHook = hook$jscomp$inline_1578);
(injectedHook = hook$jscomp$inline_1574);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<cff8afb4533b426f7c26ccb0475bdf8c>>
* @generated SignedSource<<918f2971ff54304721b755a22da3df6d>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -405,7 +405,7 @@ __DEV__ &&
prevPrepareStackTrace = error.indexOf("\n");
-1 !== prevPrepareStackTrace &&
(error = error.slice(prevPrepareStackTrace + 1));
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
-1 !== prevPrepareStackTrace &&
(prevPrepareStackTrace = error.lastIndexOf(
"\n",
@@ -16385,7 +16385,7 @@ __DEV__ &&
}
};
var callComponent = {
"react-stack-bottom-frame": function (Component, props, secondArg) {
react_stack_bottom_frame: function (Component, props, secondArg) {
var wasRendering = isRendering;
isRendering = !0;
try {
@@ -16396,9 +16396,9 @@ __DEV__ &&
}
},
callComponentInDEV =
callComponent["react-stack-bottom-frame"].bind(callComponent),
callComponent.react_stack_bottom_frame.bind(callComponent),
callRender = {
"react-stack-bottom-frame": function (instance) {
react_stack_bottom_frame: function (instance) {
var wasRendering = isRendering;
isRendering = !0;
try {
@@ -16408,9 +16408,9 @@ __DEV__ &&
}
}
},
callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender),
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
callComponentDidMount = {
"react-stack-bottom-frame": function (finishedWork, instance) {
react_stack_bottom_frame: function (finishedWork, instance) {
try {
instance.componentDidMount();
} catch (error) {
@@ -16418,11 +16418,12 @@ __DEV__ &&
}
}
},
callComponentDidMountInDEV = callComponentDidMount[
"react-stack-bottom-frame"
].bind(callComponentDidMount),
callComponentDidMountInDEV =
callComponentDidMount.react_stack_bottom_frame.bind(
callComponentDidMount
),
callComponentDidUpdate = {
"react-stack-bottom-frame": function (
react_stack_bottom_frame: function (
finishedWork,
instance,
prevProps,
@@ -16436,22 +16437,24 @@ __DEV__ &&
}
}
},
callComponentDidUpdateInDEV = callComponentDidUpdate[
"react-stack-bottom-frame"
].bind(callComponentDidUpdate),
callComponentDidUpdateInDEV =
callComponentDidUpdate.react_stack_bottom_frame.bind(
callComponentDidUpdate
),
callComponentDidCatch = {
"react-stack-bottom-frame": function (instance, errorInfo) {
react_stack_bottom_frame: function (instance, errorInfo) {
var stack = errorInfo.stack;
instance.componentDidCatch(errorInfo.value, {
componentStack: null !== stack ? stack : ""
});
}
},
callComponentDidCatchInDEV = callComponentDidCatch[
"react-stack-bottom-frame"
].bind(callComponentDidCatch),
callComponentDidCatchInDEV =
callComponentDidCatch.react_stack_bottom_frame.bind(
callComponentDidCatch
),
callComponentWillUnmount = {
"react-stack-bottom-frame": function (
react_stack_bottom_frame: function (
current,
nearestMountedAncestor,
instance
@@ -16463,11 +16466,12 @@ __DEV__ &&
}
}
},
callComponentWillUnmountInDEV = callComponentWillUnmount[
"react-stack-bottom-frame"
].bind(callComponentWillUnmount),
callComponentWillUnmountInDEV =
callComponentWillUnmount.react_stack_bottom_frame.bind(
callComponentWillUnmount
),
callCreate = {
"react-stack-bottom-frame": function (effect) {
react_stack_bottom_frame: function (effect) {
null != effect.resourceKind &&
console.error(
"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",
@@ -16479,9 +16483,9 @@ __DEV__ &&
return (effect.destroy = create);
}
},
callCreateInDEV = callCreate["react-stack-bottom-frame"].bind(callCreate),
callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate),
callDestroy = {
"react-stack-bottom-frame": function (
react_stack_bottom_frame: function (
current,
nearestMountedAncestor,
destroy
@@ -16493,16 +16497,15 @@ __DEV__ &&
}
}
},
callDestroyInDEV =
callDestroy["react-stack-bottom-frame"].bind(callDestroy),
callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy),
callLazyInit = {
"react-stack-bottom-frame": function (lazy) {
react_stack_bottom_frame: function (lazy) {
var init = lazy._init;
return init(lazy._payload);
}
},
callLazyInitInDEV =
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
thenableState = null,
thenableIndexCounter = 0,
currentDebugInfo = null,
@@ -16868,11 +16871,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.1.0" !== isomorphicReactPackageVersion)
if ("19.1.4" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -16898,10 +16901,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0",
version: "19.1.4",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0"
reconcilerVersion: "19.1.4"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<43be62d6fc9b622e265e2acb066ed13c>>
* @generated SignedSource<<0129ab1b7de2122366e60b1d68de6e4a>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -10603,11 +10603,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.1.0" !== isomorphicReactPackageVersion)
if ("19.1.4" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -10656,10 +10656,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1269 = {
bundleType: 0,
version: "19.1.0",
version: "19.1.4",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0"
reconcilerVersion: "19.1.4"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1269.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d0e536371839f0311bec769f15162a4b>>
* @generated SignedSource<<d09a614d44bd133ffd789d5236ba611a>>
*
* This file was sync'd from the facebook/react repository.
*/
@@ -11245,11 +11245,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.1.0" !== isomorphicReactPackageVersion)
if ("19.1.4" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.1.4\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11298,10 +11298,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1362 = {
bundleType: 0,
version: "19.1.0",
version: "19.1.4",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0"
reconcilerVersion: "19.1.4"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1362.rendererConfig = extraDevToolsConfig);
@@ -7,9 +7,14 @@
* @noformat
* @nolint
* @flow strict
* @generated SignedSource<<deb7924d11c790f99448a1c2f0edddb9>>
* @generated SignedSource<<9564768e65343249f5e5ee5074826c7f>>
*/
import type {
Component as ReactComponent,
ElementRef,
ElementType,
} from 'react';
import type {
// $FlowFixMe[nonstrict-import] TODO(@rubennorte)
HostInstance as PublicInstance,
@@ -21,8 +26,6 @@ import type {
PublicTextInstance,
} from 'react-native';
import * as React from 'react';
export type AttributeType<T, V> =
| true
| $ReadOnly<{
@@ -35,7 +38,16 @@ export type AttributeType<T, V> =
export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
export type AttributeConfiguration = $ReadOnly<{
[propName: string]: AnyAttributeType | void,
[propName: string]: AnyAttributeType,
style?: $ReadOnly<{
[propName: string]: AnyAttributeType,
...
}>,
...
}>;
export type PartialAttributeConfiguration = $ReadOnly<{
[propName: string]: AnyAttributeType,
style?: $ReadOnly<{
[propName: string]: AnyAttributeType,
...
@@ -75,7 +87,7 @@ export type PartialViewConfig = $ReadOnly<{
directEventTypes?: ViewConfig['directEventTypes'],
supportsRawText?: boolean,
uiViewClassName: string,
validAttributes?: AttributeConfiguration,
validAttributes?: PartialAttributeConfiguration,
}>;
type InspectorDataProps = $ReadOnly<{
@@ -84,7 +96,7 @@ type InspectorDataProps = $ReadOnly<{
}>;
type InspectorDataGetter = (
<TElementType: React.ElementType>(
<TElementType: ElementType>(
componentOrHandle: React.ElementRef<TElementType> | number,
) => ?number,
) => $ReadOnly<{
@@ -128,7 +140,7 @@ export type RenderRootOptions = {
+componentStack?: ?string,
// $FlowFixMe[unclear-type] unknown props and state.
// $FlowFixMe[value-as-type] Component in react repo is any-typed, but it will be well typed externally.
+errorBoundary?: ?React.Component<any, any>,
+errorBoundary?: ?ReactComponent<any, any>,
},
) => void,
onRecoverableError?: (
@@ -142,10 +154,10 @@ export type RenderRootOptions = {
* Provide minimal Flow typing for the high-level RN API and call it a day.
*/
export type ReactNativeType = {
findHostInstance_DEPRECATED<TElementType: React.ElementType>(
findHostInstance_DEPRECATED<TElementType: ElementType>(
componentOrHandle: ?(React.ElementRef<TElementType> | number),
): ?PublicInstance,
findNodeHandle<TElementType: React.ElementType>(
findNodeHandle<TElementType: ElementType>(
componentOrHandle: ?(React.ElementRef<TElementType> | number),
): ?number,
isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean,
@@ -171,10 +183,10 @@ export opaque type Node = mixed;
export opaque type InternalInstanceHandle = mixed;
export type ReactFabricType = {
findHostInstance_DEPRECATED<TElementType: React.ElementType>(
findHostInstance_DEPRECATED<TElementType: ElementType>(
componentOrHandle: ?(React.ElementRef<TElementType> | number),
): ?PublicInstance,
findNodeHandle<TElementType: React.ElementType>(
findNodeHandle<TElementType: ElementType>(
componentOrHandle: ?(React.ElementRef<TElementType> | number),
): ?number,
dispatchCommand(
+3 -3
View File
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<0cdc59a5eb40a092a692cb81e76fe251>>
* @generated SignedSource<<4317f2b865c540255481fd4d9921d969>>
*
* This file was generated by scripts/build-types/index.js.
*/
@@ -1692,7 +1692,7 @@ declare function attachNativeEventImpl(
detach: () => void
}
declare type AttributeConfiguration = {
readonly [propName: string]: AnyAttributeType | void
readonly [propName: string]: AnyAttributeType
readonly style?: {
readonly [propName: string]: AnyAttributeType
}
@@ -6037,7 +6037,7 @@ export {
ModalProps, // 3fb62261
ModalPropsAndroid, // 515fb173
ModalPropsIOS, // 6053cb61
ModeChangeEvent, // 0dc5e81f
ModeChangeEvent, // 4360da0b
MouseEvent, // d432147f
NativeAppEventEmitter, // b4d20c1d
NativeColorValue, // d2094c29
+2 -2
View File
@@ -152,8 +152,8 @@
"featureflags": "node ./scripts/featureflags/index.js"
},
"peerDependencies": {
"@types/react": "^19.1.0",
"react": "^19.1.0"
"@types/react": "^19.1.4",
"react": "^19.1.4"
},
"peerDependenciesMeta": {
"@types/react": {
+1 -1
View File
@@ -34,7 +34,7 @@
"nullthrows": "^1.1.1"
},
"peerDependencies": {
"react": "19.1.0",
"react": "19.1.4",
"react-native": "*"
},
"codegenConfig": {
+2 -2
View File
@@ -48,10 +48,10 @@
"nullthrows": "^1.1.1"
},
"devDependencies": {
"react-test-renderer": "19.1.0"
"react-test-renderer": "19.1.4"
},
"peerDependencies": {
"@types/react": "^19.1.0",
"@types/react": "^19.1.4",
"react": "*",
"react-native": "*"
},
+2 -2
View File
@@ -12,7 +12,7 @@
"test": "jest"
},
"dependencies": {
"react": "19.1.0",
"react": "19.1.4",
"react-native": "0.81.5"
},
"devDependencies": {
@@ -29,7 +29,7 @@
"eslint": "^8.19.0",
"jest": "^29.7.0",
"listr2": "^8.2.1",
"react-test-renderer": "19.1.0",
"react-test-renderer": "19.1.4",
"rxjs": "^7.8.1"
},
"engines": {
+22 -22
View File
@@ -2446,12 +2446,12 @@
dependencies:
undici-types "~6.21.0"
"@types/react@^19.1.0":
version "19.1.8"
resolved "https://registry.yarnpkg.com/@types/react/-/react-19.1.8.tgz#ff8395f2afb764597265ced15f8dddb0720ae1c3"
integrity sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==
"@types/react@^19.1.4":
version "19.2.7"
resolved "https://registry.yarnpkg.com/@types/react/-/react-19.2.7.tgz#84e62c0f23e8e4e5ac2cadcea1ffeacccae7f62f"
integrity sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==
dependencies:
csstype "^3.0.2"
csstype "^3.2.2"
"@types/responselike@^1.0.0":
version "1.0.3"
@@ -3785,10 +3785,10 @@ cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3, cross-spawn@^7.0.6:
shebang-command "^2.0.0"
which "^2.0.1"
csstype@^3.0.2:
version "3.1.3"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==
csstype@^3.2.2:
version "3.2.3"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.2.3.tgz#ec48c0f3e993e50648c86da559e2610995cf989a"
integrity sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==
damerau-levenshtein@^1.0.8:
version "1.0.8"
@@ -8113,28 +8113,28 @@ react-devtools-core@^6.1.5:
shell-quote "^1.6.1"
ws "^7"
react-is@19.1.0, react-is@^16.13.1, react-is@^16.8.4, react-is@^17.0.1, react-is@^18.0.0, react-is@^19.1.0:
version "19.1.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-19.1.0.tgz#805bce321546b7e14c084989c77022351bbdd11b"
integrity sha512-Oe56aUPnkHyyDxxkvqtd7KkdQP5uIUfHxd5XTb3wE9d/kRnZLmKbDB0GWk919tdQ+mxxPtG6EAs6RMT6i1qtHg==
react-is@19.1.4, react-is@^16.13.1, react-is@^16.8.4, react-is@^17.0.1, react-is@^18.0.0, react-is@^19.1.4:
version "19.1.4"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-19.1.4.tgz#56ef4fe07a33fe6ed08a4b8729ddb38620803092"
integrity sha512-4oz30Hl3G6Ji4MpJEMwfXCjsfjAarc9nUPLmSXJLDjHbQRTeXMgf8UAPcrsUYVV+7E7mPHqNfhi5KVVMhl+zcg==
react-refresh@^0.14.0:
version "0.14.2"
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.2.tgz#3833da01ce32da470f1f936b9d477da5c7028bf9"
integrity sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==
react-test-renderer@19.1.0:
version "19.1.0"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-19.1.0.tgz#89e1baa9e45a6da064b9760f92251d5b8e1f34ab"
integrity sha512-jXkSl3CpvPYEF+p/eGDLB4sPoDX8pKkYvRl9+rR8HxLY0X04vW7hCm1/0zHoUSjPZ3bDa+wXWNTDVIw/R8aDVw==
react-test-renderer@19.1.4:
version "19.1.4"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-19.1.4.tgz#1be80fc16f6733d9a0ac41cabb9daad39f165ace"
integrity sha512-dmcR2lSwouaNJKNRd53eeZHuWjF4YYZIq/q6wLiVz50ENrkU/Pds+pS+4XyJ/nwWmjA1ZhHxAp+vfR8A9PEcYQ==
dependencies:
react-is "^19.1.0"
react-is "^19.1.4"
scheduler "^0.26.0"
react@19.1.0:
version "19.1.0"
resolved "https://registry.yarnpkg.com/react/-/react-19.1.0.tgz#926864b6c48da7627f004795d6cce50e90793b75"
integrity sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==
react@19.1.4:
version "19.1.4"
resolved "https://registry.yarnpkg.com/react/-/react-19.1.4.tgz#d8a59f8ce3257cb383474586be4c8aab92afefa7"
integrity sha512-DHINL3PAmPUiK1uszfbKiXqfE03eszdt5BpVSuEAHb5nfmNPwnsy7g39h2t8aXFc/Bv99GH81s+j8dobtD+jOw==
read-pkg-up@^2.0.0:
version "2.0.0"