Skip to content

Extract react/bridging into its own React-bridging pod#57354

Open
javache wants to merge 1 commit into
react:mainfrom
javache:export-D109868509
Open

Extract react/bridging into its own React-bridging pod#57354
javache wants to merge 1 commit into
react:mainfrom
javache:export-D109868509

Conversation

@javache

@javache javache commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary:
Split the react/bridging headers out of the ReactCommon pod's turbomodule/bridging subspec into a standalone React-bridging podspec, mirroring the existing React-bridging SwiftPM target. This makes bridging a dependency-graph leaf so other modules can depend on it without pulling in ReactCommon / React-cxxreact.

Consumers that previously reached react/bridging headers transitively through ReactCommon now resolve them through the standalone pod. The CocoaPods header-search-path injection in update_search_paths lists React-bridging alongside the other core frameworks so the headers resolve everywhere, and pods that link the LongLivedObject / CallbackWrapper symbols (React-Fabric, the nativemodule feature pods, React-NativeModulesApple, React-RCTFBReactNativeSpec) gain an explicit React-bridging dependency. All ReactCommon/turbomodule/bridging references in podspecs, the autolinker, the codegen template, and their test snapshots are repointed to React-bridging.

Changelog:
[Internal]

Differential Revision: D109868509

Summary:
Split the `react/bridging` headers out of the `ReactCommon` pod's `turbomodule/bridging` subspec into a standalone `React-bridging` podspec, mirroring the existing `React-bridging` SwiftPM target. This makes bridging a dependency-graph leaf so other modules can depend on it without pulling in `ReactCommon` / `React-cxxreact`.

Consumers that previously reached `react/bridging` headers transitively through `ReactCommon` now resolve them through the standalone pod. The CocoaPods header-search-path injection in `update_search_paths` lists `React-bridging` alongside the other core frameworks so the headers resolve everywhere, and pods that link the `LongLivedObject` / `CallbackWrapper` symbols (`React-Fabric`, the nativemodule feature pods, `React-NativeModulesApple`, `React-RCTFBReactNativeSpec`) gain an explicit `React-bridging` dependency. All `ReactCommon/turbomodule/bridging` references in podspecs, the autolinker, the codegen template, and their test snapshots are repointed to `React-bridging`.

Changelog:
[Internal]

Differential Revision: D109868509
@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 Jun 26, 2026
@meta-codesync

meta-codesync Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

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