[rn] delete the legacy renderers from the sync (#34946)

Now that RN is only on the New Architecture, we can stop stop syncing
the legacy React Native renderers.

In this diff, I just stop syncing them. In a follow up I'll delete the
code for them so only Fabric is left.

This will also allow us to remove the `enableLegacyMode` feature flag.

DiffTrain build for [90817f8810](https://github.com/facebook/react/commit/90817f8810da9d993bf93a75b673399b112af67e)
This commit is contained in:
rickhanlonii
2025-10-27 14:44:38 -07:00
parent ec2bb7fc37
commit b1358efcfe
25 changed files with 72 additions and 46044 deletions
+1 -1
View File
@@ -1 +1 @@
19.3.0-native-fb-408b38ef-20251023
19.3.0-native-fb-90817f88-20251027
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7091fabeff3133a034d503a8010cc2c6>>
* @generated SignedSource<<23f1b6bb3ad4f31d9d503b389ee2e4ff>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c2fa393bfca5ed623ddafb57633dea03>>
* @generated SignedSource<<4a87ccb0f35a6c88be76a74459be0cf7>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c2fa393bfca5ed623ddafb57633dea03>>
* @generated SignedSource<<4a87ccb0f35a6c88be76a74459be0cf7>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5a99938df592aa5ae74cb73ec733ed48>>
* @generated SignedSource<<4697cc63bbd2659dd4715968d9f0183f>>
*/
/*
@@ -30117,11 +30117,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
if ("19.3.0-native-fb-90817f88-20251027" !== 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.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-native-fb-90817f88-20251027\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30158,10 +30158,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30311,5 +30311,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0dca7200a73ea0c3d46cd3baaf4b247a>>
* @generated SignedSource<<406caf08309a5b3c3dab2a4337c9551d>>
*/
/*
@@ -17581,14 +17581,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2060 = React.version;
if (
"19.3.0-native-fb-408b38ef-20251023" !==
"19.3.0-native-fb-90817f88-20251027" !==
isomorphicReactPackageVersion$jscomp$inline_2060
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2060,
"19.3.0-native-fb-408b38ef-20251023"
"19.3.0-native-fb-90817f88-20251027"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17610,10 +17610,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2637 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2638 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17720,4 +17720,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6878cd4259a4076d18e82296013b1608>>
* @generated SignedSource<<508e5fd7b6e604200a4a6580590ec34e>>
*/
/*
@@ -19703,14 +19703,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2375 = React.version;
if (
"19.3.0-native-fb-408b38ef-20251023" !==
"19.3.0-native-fb-90817f88-20251027" !==
isomorphicReactPackageVersion$jscomp$inline_2375
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2375,
"19.3.0-native-fb-408b38ef-20251023"
"19.3.0-native-fb-90817f88-20251027"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19732,10 +19732,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2382 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023",
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$332 = 0;
@@ -19858,4 +19858,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b36ff351278df6c6e0af06da24bff1d4>>
* @generated SignedSource<<7e2f6e368acb7ac26933af78b530bb8f>>
*/
/*
@@ -30173,11 +30173,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
if ("19.3.0-native-fb-90817f88-20251027" !== 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.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-native-fb-90817f88-20251027\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30214,10 +30214,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30683,7 +30683,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<153ceabc05cbc0ec384c78eb590ce4fe>>
* @generated SignedSource<<a420fefe2d59fb8bc615e0b1d8f20d9a>>
*/
/*
@@ -17592,14 +17592,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2061 = React.version;
if (
"19.3.0-native-fb-408b38ef-20251023" !==
"19.3.0-native-fb-90817f88-20251027" !==
isomorphicReactPackageVersion$jscomp$inline_2061
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2061,
"19.3.0-native-fb-408b38ef-20251023"
"19.3.0-native-fb-90817f88-20251027"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17621,10 +17621,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2640 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2641 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17884,4 +17884,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0475fd15ab449de977c7c586bd695bc7>>
* @generated SignedSource<<778e16e413a9875efd9543feb2d9596d>>
*/
/*
@@ -19718,14 +19718,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2376 = React.version;
if (
"19.3.0-native-fb-408b38ef-20251023" !==
"19.3.0-native-fb-90817f88-20251027" !==
isomorphicReactPackageVersion$jscomp$inline_2376
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2376,
"19.3.0-native-fb-408b38ef-20251023"
"19.3.0-native-fb-90817f88-20251027"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19747,10 +19747,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2383 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023",
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$332 = 0;
@@ -20026,7 +20026,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0756cb428cb2550d8b559749ade2dc56>>
* @generated SignedSource<<174a3516c7d9131240ce132cbd6b2593>>
*/
"use strict";
@@ -16021,10 +16021,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16170,5 +16170,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e208623024e60cc3f482afa4c0000362>>
* @generated SignedSource<<9f739919c35ee8d2cc87206afdce8778>>
*/
"use strict";
@@ -10110,10 +10110,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1494 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1495 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10249,4 +10249,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<44becc503d45f02d9ff82b70fcfcecb1>>
* @generated SignedSource<<87f1a0a273803bb42587503c0b374b4e>>
*/
"use strict";
@@ -10731,10 +10731,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1275 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023",
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$147 = 0;
@@ -10885,4 +10885,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2d6002bd79da092f81288cd02e4a22d6>>
* @generated SignedSource<<518e233de81c5587b158f2470e64ff65>>
*/
"use strict";
@@ -1414,7 +1414,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c606e0521229229fb919a1eaa663722c>>
* @generated SignedSource<<150e52a2ec91cc5a8c5ed063763b6f88>>
*/
"use strict";
@@ -586,4 +586,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4ff3218717065728877a452811c32876>>
* @generated SignedSource<<96b712bd42adc0e68de2a3c5f87b0c11>>
*/
"use strict";
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-native-fb-408b38ef-20251023";
exports.version = "19.3.0-native-fb-90817f88-20251027";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
408b38ef7304faf022d2a37110c57efce12c6bad
90817f8810da9d993bf93a75b673399b112af67e
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<23ebd600e89c090d10845e1f58a5b299>>
* @generated SignedSource<<30f7f4382f14217ab5d1692abbb3bbde>>
*/
"use strict";
@@ -20085,10 +20085,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2606f088bc031a5b0d63c5fc3eff88a1>>
* @generated SignedSource<<69bd6f61b0cb302d36b6d2294c9b7bde>>
*/
"use strict";
@@ -11269,10 +11269,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1321 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1321.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a7dab014abbc42bcbb3c453b0e4097d6>>
* @generated SignedSource<<b5f61430e78fd5396a4c3579155fcc76>>
*/
"use strict";
@@ -13334,10 +13334,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1629 = {
bundleType: 0,
version: "19.3.0-native-fb-408b38ef-20251023",
version: "19.3.0-native-fb-90817f88-20251027",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
reconcilerVersion: "19.3.0-native-fb-90817f88-20251027"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1629.rendererConfig = extraDevToolsConfig);
@@ -1,24 +0,0 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noformat
* @nolint
* @flow
* @generated SignedSource<<8f46fdc9267fcc4fdc9e76842fe24066>>
*/
'use strict';
import type {ReactNativeType} from './ReactNativeTypes';
let ReactNative: ReactNativeType;
if (__DEV__) {
ReactNative = require('../implementations/ReactNativeRenderer-dev');
} else {
ReactNative = require('../implementations/ReactNativeRenderer-prod');
}
export default ReactNative;
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-408b38ef-20251023",
"version": "0.0.0-experimental-90817f88-20251027",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",