Skip to content

Update ReactPrivate and InitializeCore imports (0.87 Strict API) (#36986) (#57753) - #57753

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D113928305
Closed

Update ReactPrivate and InitializeCore imports (0.87 Strict API) (#36986) (#57753)#57753
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D113928305

Conversation

@huntie

@huntiehuntie commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary:

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

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.

Test Plan

Flow

DiffTrain build for 96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9

Reviewed By: hoxyq

Differential Revision: D113928305

@meta-clameta-claBot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 29, 2026
@meta-codesync

Copy link
Copy Markdown

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113928305.

@meta-codesyncmeta-codesyncBot changed the title Update ReactPrivate and InitializeCore imports (0.87 Strict API) (#36986)Update ReactPrivate and InitializeCore imports (0.87 Strict API) (#36986) (#57753)Jul 29, 2026
huntie added a commit to huntie/react-native that referenced this pull request Jul 29, 2026
…ct#36986) (react#57753)
Summary:
## 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#57475](react#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react#57495](react#57495)
## Test Plan
Flow
DiffTrain build for [96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9](react/react@96fcba9)
Reviewed By: hoxyq
Differential Revision: D113928305
@huntie
huntieforce-pushed the export-D113928305 branch from 3d6b54c to 9f10a56CompareJuly 29, 2026 12:32
huntie added a commit to huntie/react-native that referenced this pull request Jul 29, 2026
…ct#36986) (react#57753)
Summary:
## 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#57475](react#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react#57495](react#57495)
## Test Plan
Flow
DiffTrain build for [96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9](react/react@96fcba9)
Reviewed By: hoxyq
Differential Revision: D113928305
@huntie
huntieforce-pushed the export-D113928305 branch from 9f10a56 to 4ce6115CompareJuly 29, 2026 12:41
huntie added a commit to huntie/react-native that referenced this pull request Jul 29, 2026
…ct#36986) (react#57753)
Summary:
## 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#57475](react#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react#57495](react#57495)
## Test Plan
Flow
DiffTrain build for [96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9](react/react@96fcba9)
Reviewed By: hoxyq
Differential Revision: D113928305
@huntie
huntieforce-pushed the export-D113928305 branch from 4ce6115 to 5134840CompareJuly 29, 2026 12:57
huntie added a commit to huntie/react-native that referenced this pull request Jul 29, 2026
…ct#36986) (react#57753)
Summary:
## 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#57475](react#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react#57495](react#57495)
## Test Plan
Flow
DiffTrain build for [96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9](react/react@96fcba9)
Reviewed By: hoxyq
Differential Revision: D113928305
@huntie
huntieforce-pushed the export-D113928305 branch from 5134840 to 3f30cceCompareJuly 29, 2026 13:18
huntie added a commit to huntie/react-native that referenced this pull request Jul 29, 2026
…ct#36986) (react#57753)
Summary:
## 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#57475](react#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react#57495](react#57495)
## Test Plan
Flow
DiffTrain build for [96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9](react/react@96fcba9)
Reviewed By: hoxyq
Differential Revision: D113928305
@huntie
huntieforce-pushed the export-D113928305 branch from 3f30cce to 8f119caCompareJuly 29, 2026 14:44
…ct#36986) (react#57753)
Summary:
## 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#57475](react#57475)
- `react-native/Libraries/ReactPrivate/ReactNativePrivateInterface` →
`react-native/react-private-interface`
[react#57495](react#57495)
## Test Plan
Flow
DiffTrain build for [96fcba90138e9f1a73ee1cc4f79a653ec12fc3a9](react/react@96fcba9)
Reviewed By: hoxyq
Differential Revision: D113928305
@huntie
huntieforce-pushed the export-D113928305 branch from 8f119ca to 6eff6ceCompareJuly 30, 2026 12:24
@meta-codesyncmeta-codesyncBot added the Merged This PR has been merged. label Jul 30, 2026
@meta-codesync

Copy link
Copy Markdown

This pull request has been merged in fa0e675.

@huntie
huntie deleted the export-D113928305 branch July 30, 2026 14:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.meta-exportedp: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@huntie