Skip to content

Get uiRuntime directly from react-native-worklets#4276

Draft
coado wants to merge 4 commits into
mainfrom
@coado/worklets-integration
Draft

Get uiRuntime directly from react-native-worklets#4276
coado wants to merge 4 commits into
mainfrom
@coado/worklets-integration

Conversation

@coado

@coado coado commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Description

The uiRuntime address is currently accessed through the Reanimated's global _WORKLET_RUNTIME stored on the main JS thread. This diff changes that to firstly try accessing it using the getUIWorkletRuntime from react-native-worklets( whenever worklets are found) and fallback to previous approach.

Test plan

Tested on Runtime Decoration example on iOS and Android.

@coado coado changed the title Get uiRuntime directly from react-native-worklets Get uiRuntime directly from react-native-worklets Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant