Skip to content

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

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

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

@huntie huntie commented Jul 29, 2026

Copy link
Copy Markdown
Member

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-cla meta-cla Bot 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

meta-codesync Bot commented Jul 29, 2026

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-codesync meta-codesync Bot 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
huntie force-pushed the export-D113928305 branch from 3d6b54c to 9f10a56 Compare July 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
huntie force-pushed the export-D113928305 branch from 9f10a56 to 4ce6115 Compare July 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
huntie force-pushed the export-D113928305 branch from 4ce6115 to 5134840 Compare July 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
huntie force-pushed the export-D113928305 branch from 5134840 to 3f30cce Compare July 29, 2026 13:18
…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
huntie force-pushed the export-D113928305 branch from 3f30cce to 8f119ca Compare July 29, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant