Skip to content

Commit 2c30f8d

Browse files
committed
[RN] Update ReactPrivate and InitializeCore imports (0.87 Strict API) (#36986)
## Summary Migrate internal `Libraries/` import subpaths from `react-native` to the incoming dedicated entry points in React Native 0.87. **Motivation** See [**RFC0894: Removing deep imports from react-native**](react-native-community/discussions-and-proposals#894) **Changes** The `react-private-interface` entry point has been created explicitly for the private contract between React ↔ React Native, and is 1:1 with the previous `ReactNativePrivateInterface` module. Both of the below `Libraries/` paths still exist, but are deprecated — this is a lagging migration that will enable cleanup in a future RN version. - `react-native/Libraries/Core/InitializeCore` → `react-native/setup-env` [react/react-native#57475](react/react-native#57475) - `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` → `react-native/react-private-interface` [react/react-native#57495](react/react-native#57495) ## Test Plan Flow DiffTrain build for [96fcba9](96fcba9)
1 parent eb40a0d commit 2c30f8d

23 files changed

Lines changed: 143 additions & 155 deletions

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.3.0-native-fb-756fdd47-20260727
1+
19.3.0-native-fb-96fcba90-20260728

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<3765a1ac9c069d4b45e6e71cdd8ffa01>>
10+
* @generated SignedSource<<e9a2eaaa7fdbe6e36455fe406d4f3430>>
1111
*/
1212

1313
"use strict";
@@ -419,5 +419,5 @@ __DEV__ &&
419419
exports.useFormStatus = function () {
420420
return resolveDispatcher().useHostTransitionStatus();
421421
};
422-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
422+
exports.version = "19.3.0-native-fb-96fcba90-20260728";
423423
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<6901f03fc3792eeb724fd47cfd8af0d9>>
10+
* @generated SignedSource<<1e0da2b374d9ab46b17e5654dd9e5475>>
1111
*/
1212

1313
"use strict";
@@ -218,4 +218,4 @@ exports.useFormState = function (action, initialState, permalink) {
218218
exports.useFormStatus = function () {
219219
return ReactSharedInternals.H.useHostTransitionStatus();
220220
};
221-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
221+
exports.version = "19.3.0-native-fb-96fcba90-20260728";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<6901f03fc3792eeb724fd47cfd8af0d9>>
10+
* @generated SignedSource<<1e0da2b374d9ab46b17e5654dd9e5475>>
1111
*/
1212

1313
"use strict";
@@ -218,4 +218,4 @@ exports.useFormState = function (action, initialState, permalink) {
218218
exports.useFormStatus = function () {
219219
return ReactSharedInternals.H.useHostTransitionStatus();
220220
};
221-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
221+
exports.version = "19.3.0-native-fb-96fcba90-20260728";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<2e44a5fb918409222d3ce373f4341a8e>>
10+
* @generated SignedSource<<bfa7d1a997991fa241944b6a007648dc>>
1111
*/
1212

1313
/*
@@ -32186,11 +32186,11 @@ __DEV__ &&
3218632186
};
3218732187
(function () {
3218832188
var isomorphicReactPackageVersion = React.version;
32189-
if ("19.3.0-native-fb-756fdd47-20260727" !== isomorphicReactPackageVersion)
32189+
if ("19.3.0-native-fb-96fcba90-20260728" !== isomorphicReactPackageVersion)
3219032190
throw Error(
3219132191
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3219232192
(isomorphicReactPackageVersion +
32193-
"\n - react-dom: 19.3.0-native-fb-756fdd47-20260727\nLearn more: https://react.dev/warnings/version-mismatch")
32193+
"\n - react-dom: 19.3.0-native-fb-96fcba90-20260728\nLearn more: https://react.dev/warnings/version-mismatch")
3219432194
);
3219532195
})();
3219632196
("function" === typeof Map &&
@@ -32227,10 +32227,10 @@ __DEV__ &&
3222732227
!(function () {
3222832228
var internals = {
3222932229
bundleType: 1,
32230-
version: "19.3.0-native-fb-756fdd47-20260727",
32230+
version: "19.3.0-native-fb-96fcba90-20260728",
3223132231
rendererPackageName: "react-dom",
3223232232
currentDispatcherRef: ReactSharedInternals,
32233-
reconcilerVersion: "19.3.0-native-fb-756fdd47-20260727"
32233+
reconcilerVersion: "19.3.0-native-fb-96fcba90-20260728"
3223432234
};
3223532235
internals.overrideHookState = overrideHookState;
3223632236
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32380,5 +32380,5 @@ __DEV__ &&
3238032380
listenToAllSupportedEvents(container);
3238132381
return new ReactDOMHydrationRoot(initialChildren);
3238232382
};
32383-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
32383+
exports.version = "19.3.0-native-fb-96fcba90-20260728";
3238432384
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<592c1d4f8d45f1aa295dfc9a6138c1c3>>
10+
* @generated SignedSource<<88794c9cd36dacc186770e0f910d4865>>
1111
*/
1212

1313
/*
@@ -19310,14 +19310,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1931019310
};
1931119311
var isomorphicReactPackageVersion$jscomp$inline_2142 = React.version;
1931219312
if (
19313-
"19.3.0-native-fb-756fdd47-20260727" !==
19313+
"19.3.0-native-fb-96fcba90-20260728" !==
1931419314
isomorphicReactPackageVersion$jscomp$inline_2142
1931519315
)
1931619316
throw Error(
1931719317
formatProdErrorMessage(
1931819318
527,
1931919319
isomorphicReactPackageVersion$jscomp$inline_2142,
19320-
"19.3.0-native-fb-756fdd47-20260727"
19320+
"19.3.0-native-fb-96fcba90-20260728"
1932119321
)
1932219322
);
1932319323
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19339,10 +19339,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1933919339
};
1934019340
var internals$jscomp$inline_2739 = {
1934119341
bundleType: 0,
19342-
version: "19.3.0-native-fb-756fdd47-20260727",
19342+
version: "19.3.0-native-fb-96fcba90-20260728",
1934319343
rendererPackageName: "react-dom",
1934419344
currentDispatcherRef: ReactSharedInternals,
19345-
reconcilerVersion: "19.3.0-native-fb-756fdd47-20260727"
19345+
reconcilerVersion: "19.3.0-native-fb-96fcba90-20260728"
1934619346
};
1934719347
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1934819348
var hook$jscomp$inline_2740 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19449,4 +19449,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1944919449
listenToAllSupportedEvents(container);
1945019450
return new ReactDOMHydrationRoot(initialChildren);
1945119451
};
19452-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
19452+
exports.version = "19.3.0-native-fb-96fcba90-20260728";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<485a084c6e539f2dc0632e1d58fd9636>>
10+
* @generated SignedSource<<9b8da78a9defad41a0e3a1b6518169b8>>
1111
*/
1212

1313
/*
@@ -21370,14 +21370,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
2137021370
};
2137121371
var isomorphicReactPackageVersion$jscomp$inline_2489 = React.version;
2137221372
if (
21373-
"19.3.0-native-fb-756fdd47-20260727" !==
21373+
"19.3.0-native-fb-96fcba90-20260728" !==
2137421374
isomorphicReactPackageVersion$jscomp$inline_2489
2137521375
)
2137621376
throw Error(
2137721377
formatProdErrorMessage(
2137821378
527,
2137921379
isomorphicReactPackageVersion$jscomp$inline_2489,
21380-
"19.3.0-native-fb-756fdd47-20260727"
21380+
"19.3.0-native-fb-96fcba90-20260728"
2138121381
)
2138221382
);
2138321383
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -21399,10 +21399,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
2139921399
};
2140021400
var internals$jscomp$inline_2496 = {
2140121401
bundleType: 0,
21402-
version: "19.3.0-native-fb-756fdd47-20260727",
21402+
version: "19.3.0-native-fb-96fcba90-20260728",
2140321403
rendererPackageName: "react-dom",
2140421404
currentDispatcherRef: ReactSharedInternals,
21405-
reconcilerVersion: "19.3.0-native-fb-756fdd47-20260727",
21405+
reconcilerVersion: "19.3.0-native-fb-96fcba90-20260728",
2140621406
getLaneLabelMap: function () {
2140721407
for (
2140821408
var map = new Map(), lane = 1, index$348 = 0;
@@ -21525,4 +21525,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
2152521525
listenToAllSupportedEvents(container);
2152621526
return new ReactDOMHydrationRoot(initialChildren);
2152721527
};
21528-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
21528+
exports.version = "19.3.0-native-fb-96fcba90-20260728";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<5cecd2c441ad9b4c46f771aba18ebc82>>
10+
* @generated SignedSource<<40682c29ee831c8ce192636005fc3b24>>
1111
*/
1212

1313
/*
@@ -32248,11 +32248,11 @@ __DEV__ &&
3224832248
};
3224932249
(function () {
3225032250
var isomorphicReactPackageVersion = React.version;
32251-
if ("19.3.0-native-fb-756fdd47-20260727" !== isomorphicReactPackageVersion)
32251+
if ("19.3.0-native-fb-96fcba90-20260728" !== isomorphicReactPackageVersion)
3225232252
throw Error(
3225332253
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3225432254
(isomorphicReactPackageVersion +
32255-
"\n - react-dom: 19.3.0-native-fb-756fdd47-20260727\nLearn more: https://react.dev/warnings/version-mismatch")
32255+
"\n - react-dom: 19.3.0-native-fb-96fcba90-20260728\nLearn more: https://react.dev/warnings/version-mismatch")
3225632256
);
3225732257
})();
3225832258
("function" === typeof Map &&
@@ -32289,10 +32289,10 @@ __DEV__ &&
3228932289
!(function () {
3229032290
var internals = {
3229132291
bundleType: 1,
32292-
version: "19.3.0-native-fb-756fdd47-20260727",
32292+
version: "19.3.0-native-fb-96fcba90-20260728",
3229332293
rendererPackageName: "react-dom",
3229432294
currentDispatcherRef: ReactSharedInternals,
32295-
reconcilerVersion: "19.3.0-native-fb-756fdd47-20260727"
32295+
reconcilerVersion: "19.3.0-native-fb-96fcba90-20260728"
3229632296
};
3229732297
internals.overrideHookState = overrideHookState;
3229832298
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32767,7 +32767,7 @@ __DEV__ &&
3276732767
exports.useFormStatus = function () {
3276832768
return resolveDispatcher().useHostTransitionStatus();
3276932769
};
32770-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
32770+
exports.version = "19.3.0-native-fb-96fcba90-20260728";
3277132771
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3277232772
"function" ===
3277332773
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<fe14542ed030427c1e6122f3ec28da9b>>
10+
* @generated SignedSource<<d13aa32bc9023bdc90c012445f4a2abf>>
1111
*/
1212

1313
/*
@@ -19327,14 +19327,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1932719327
};
1932819328
var isomorphicReactPackageVersion$jscomp$inline_2143 = React.version;
1932919329
if (
19330-
"19.3.0-native-fb-756fdd47-20260727" !==
19330+
"19.3.0-native-fb-96fcba90-20260728" !==
1933119331
isomorphicReactPackageVersion$jscomp$inline_2143
1933219332
)
1933319333
throw Error(
1933419334
formatProdErrorMessage(
1933519335
527,
1933619336
isomorphicReactPackageVersion$jscomp$inline_2143,
19337-
"19.3.0-native-fb-756fdd47-20260727"
19337+
"19.3.0-native-fb-96fcba90-20260728"
1933819338
)
1933919339
);
1934019340
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19356,10 +19356,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1935619356
};
1935719357
var internals$jscomp$inline_2742 = {
1935819358
bundleType: 0,
19359-
version: "19.3.0-native-fb-756fdd47-20260727",
19359+
version: "19.3.0-native-fb-96fcba90-20260728",
1936019360
rendererPackageName: "react-dom",
1936119361
currentDispatcherRef: ReactSharedInternals,
19362-
reconcilerVersion: "19.3.0-native-fb-756fdd47-20260727"
19362+
reconcilerVersion: "19.3.0-native-fb-96fcba90-20260728"
1936319363
};
1936419364
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1936519365
var hook$jscomp$inline_2743 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19628,4 +19628,4 @@ exports.useFormState = function (action, initialState, permalink) {
1962819628
exports.useFormStatus = function () {
1962919629
return ReactSharedInternals.H.useHostTransitionStatus();
1963019630
};
19631-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
19631+
exports.version = "19.3.0-native-fb-96fcba90-20260728";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<304984b4fe53bb1c6d0c6136af529846>>
10+
* @generated SignedSource<<7046580a69a5123cdbdeae04a17e9e15>>
1111
*/
1212

1313
/*
@@ -21391,14 +21391,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
2139121391
};
2139221392
var isomorphicReactPackageVersion$jscomp$inline_2490 = React.version;
2139321393
if (
21394-
"19.3.0-native-fb-756fdd47-20260727" !==
21394+
"19.3.0-native-fb-96fcba90-20260728" !==
2139521395
isomorphicReactPackageVersion$jscomp$inline_2490
2139621396
)
2139721397
throw Error(
2139821398
formatProdErrorMessage(
2139921399
527,
2140021400
isomorphicReactPackageVersion$jscomp$inline_2490,
21401-
"19.3.0-native-fb-756fdd47-20260727"
21401+
"19.3.0-native-fb-96fcba90-20260728"
2140221402
)
2140321403
);
2140421404
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -21420,10 +21420,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
2142021420
};
2142121421
var internals$jscomp$inline_2497 = {
2142221422
bundleType: 0,
21423-
version: "19.3.0-native-fb-756fdd47-20260727",
21423+
version: "19.3.0-native-fb-96fcba90-20260728",
2142421424
rendererPackageName: "react-dom",
2142521425
currentDispatcherRef: ReactSharedInternals,
21426-
reconcilerVersion: "19.3.0-native-fb-756fdd47-20260727",
21426+
reconcilerVersion: "19.3.0-native-fb-96fcba90-20260728",
2142721427
getLaneLabelMap: function () {
2142821428
for (
2142921429
var map = new Map(), lane = 1, index$348 = 0;
@@ -21708,7 +21708,7 @@ exports.useFormState = function (action, initialState, permalink) {
2170821708
exports.useFormStatus = function () {
2170921709
return ReactSharedInternals.H.useHostTransitionStatus();
2171021710
};
21711-
exports.version = "19.3.0-native-fb-756fdd47-20260727";
21711+
exports.version = "19.3.0-native-fb-96fcba90-20260728";
2171221712
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2171321713
"function" ===
2171421714
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)