Repository navigation
Drop legacy export macros when both interops are removed (#60203) - #60203
Open
christophpurrer wants to merge 1 commit into
Open
christophpurrer wants to merge 1 commit into
christophpurrer wants to merge 1 commit into
Conversation
|
@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D133675552. |
christophpurrer
force-pushed
the
export-D133675552
branch
from
December 2, 2026 12:53
b04950f to
9045dd4
Compare
Summary: Consumers who define both `RCT_REMOVE_LEGACY_MODULE_INTEROP` and `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` now get the legacy `RCT_EXPORT_METHOD` family and `RCT_EXTERN_*` macros compiled out of `RCTBridgeModule.h`, so remaining legacy modules fail at compile time. `RCT_EXPORT_MODULE` stays available for TurboModules. Core modules keep plain method declarations under the flags, and in-repo legacy fixtures are compiled out. Changelog: [iOS][Added] - Compile out legacy `RCT_EXPORT_METHOD` and `RCT_EXTERN_*` macros when both `RCT_REMOVE_LEGACY_MODULE_INTEROP` and `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` are set Reviewed By: shwanton Differential Revision: D133675552
christophpurrer
added a commit
to christophpurrer/react-native-macos
that referenced
this pull request
Dec 2, 2026
Summary: Consumers who define both `RCT_REMOVE_LEGACY_MODULE_INTEROP` and `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` now get the legacy `RCT_EXPORT_METHOD` family and `RCT_EXTERN_*` macros compiled out of `RCTBridgeModule.h`, so remaining legacy modules fail at compile time. `RCT_EXPORT_MODULE` stays available for TurboModules. Core modules keep plain method declarations under the flags, and in-repo legacy fixtures are compiled out. Changelog: [iOS][Added] - Compile out legacy `RCT_EXPORT_METHOD` and `RCT_EXTERN_*` macros when both `RCT_REMOVE_LEGACY_MODULE_INTEROP` and `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` are set Reviewed By: shwanton Differential Revision: D133675552
christophpurrer
force-pushed
the
export-D133675552
branch
from
December 2, 2026 14:08
9045dd4 to
c6e4f05
Compare
shwanton
approved these changes
Dec 2, 2026
shwanton
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
christophpurrer
force-pushed
the
export-D133675552
branch
from
December 2, 2026 14:08
c6e4f05 to
64105d7
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Consumers who define both
RCT_REMOVE_LEGACY_MODULE_INTEROPandRCT_REMOVE_LEGACY_COMPONENT_INTEROPnow get the legacyRCT_EXPORT_METHODfamily andRCT_EXTERN_*macros compiled out ofRCTBridgeModule.h, so remaining legacy modules fail at compile time.RCT_EXPORT_MODULEstays available for TurboModules. Core modules keep plain method declarations under the flags, and in-repo legacy fixtures are compiled out.Changelog:
[iOS][Added] - Compile out legacy
RCT_EXPORT_METHODandRCT_EXTERN_*macros when bothRCT_REMOVE_LEGACY_MODULE_INTEROPandRCT_REMOVE_LEGACY_COMPONENT_INTEROPare setReviewed By: shwanton
Differential Revision: D133675552