Skip to content

Conversation

@tjzel
Copy link
Collaborator

@tjzel tjzel commented Oct 17, 2025

@tjzel tjzel changed the base branch from main to @tjzel/worklets/runtime-from-uuid October 31, 2025 14:44
github-merge-queue bot pushed a commit that referenced this pull request Oct 31, 2025
## Summary

Adding a handy APIs of obtaining a (weak) pointer to the Worklet Runtime
from its underlying jsi::Runtime.

It uses `setRuntimeData` and `getRuntimeData` that allows to map an
arbitrary shared_ptr to a given jsi::Runtime. With a handy static getter
function we can obtain the Worklet Runtime and access its event loop and
its methods without going through Worklets module etc.

`getRuntimeData`, `setRuntimeData` and `jsi::UUID` are [available from
RN
0.81](facebook/react-native@499fcfa).

## Test plan

Tested in
- #8410 👍
Base automatically changed from @tjzel/worklets/runtime-from-uuid to main October 31, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants