Skip to content

Classify react/nativemodule/defaults as for-frameworks - #58423

Open
coado wants to merge 1 commit into
react:mainfrom
coado:export-D119326878
Open

Classify react/nativemodule/defaults as for-frameworks#58423
coado wants to merge 1 commit into
react:mainfrom
coado:export-D119326878

Conversation

@coado

@coado coado commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary:
Reclassify DefaultTurboModules.h from the private C++ Stable API tier to the
"for frameworks" tier, and add the #pragma once the header was missing.

DefaultTurboModules::getTurboModule is the entry point out-of-tree platforms and
custom C++ hosts use to obtain React Native's core turbo modules. Its exported surface
is a single static function over std::string, CallInvoker and the TurboModule base
class, so it exposes no private type. The concrete react/nativemodule/*
implementations it delegates to all remain private.

Changelog: [Internal]

Differential Revision: D119326878

Summary:
Reclassify `DefaultTurboModules.h` from the private C++ Stable API tier to the
"for frameworks" tier, and add the `#pragma once` the header was missing.

`DefaultTurboModules::getTurboModule` is the entry point out-of-tree platforms and
custom C++ hosts use to obtain React Native's core turbo modules. Its exported surface
is a single static function over `std::string`, `CallInvoker` and the `TurboModule` base
class, so it exposes no private type. The concrete `react/nativemodule/*`
implementations it delegates to all remain private.


Changelog: [Internal]

Differential Revision: D119326878
@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 Sep 9, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Sep 9, 2026
@meta-codesync

meta-codesync Bot commented Sep 9, 2026

Copy link
Copy Markdown

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

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 p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant