Skip to content

Expose RuntimeExecutor on ReactContext#56987

Open
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D106647233
Open

Expose RuntimeExecutor on ReactContext#56987
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D106647233

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented May 28, 2026

Summary:
Add ReactContext.getRuntimeExecutor() so callers can obtain the RuntimeExecutor without reaching into CatalystInstance. The bridge subclass forwards to CatalystInstance.getRuntimeExecutor(); the bridgeless subclass forwards to ReactHost.runtimeExecutor; ThemedReactContext proxies to its wrapped ReactApplicationContext. Previously, callers that needed the runtime executor had to reach through catalystInstance.getRuntimeExecutor(), which is bridge-only and required a NoGetCatalystInstance lint suppression. The new accessor works uniformly in both bridged and bridgeless modes.

Changelog:
[Android][Added] - Add ReactContext.getRuntimeExecutor()

Differential Revision: D106647233

Summary:
Add `ReactContext.getRuntimeExecutor()` so callers can obtain the `RuntimeExecutor` without reaching into `CatalystInstance`. The bridge subclass forwards to `CatalystInstance.getRuntimeExecutor()`; the bridgeless subclass forwards to `ReactHost.runtimeExecutor`; `ThemedReactContext` proxies to its wrapped `ReactApplicationContext`. Previously, callers that needed the runtime executor had to reach through `catalystInstance.getRuntimeExecutor()`, which is bridge-only and required a `NoGetCatalystInstance` lint suppression. The new accessor works uniformly in both bridged and bridgeless modes.

Changelog:
[Android][Added] - Add `ReactContext.getRuntimeExecutor()`

Differential Revision: D106647233
@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 May 28, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 28, 2026

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

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. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant