Call tables
{/ TODO: Rewrite this guide for 1.0. It compares Bundle Mode with Legacy Eval Mode, which 1.0 removed. The 1.0 reference pages use RuntimeCallTable, which has one row of runtimes. /}
Compatibility
The Worklets library isn't tested on the Legacy Architecture (Paper). We highly recommend migrating to the New Architecture (Fabric) prior to using the Worklets library.
Integrating with Worklets from C++
Use the Worklets stable C++ interface when your React Native library needs to call Worklets from native code. Declare react-native-worklets as a peer dependency with a package range you have tested. The app installs Worklets and React Native autolinks it.
Feature flags
Feature flags allow developers to opt-in for experimental changes or opt-out from recent changes that have already been made default. Feature flags serve as a tool for incremental rollout of new implementation without affecting the general stability of the library, allowing to gather feedback from early adopters. There are two types of feature flags: static and dynamic.
Good practices
This page lists practices that minimize the multi-threading overhead when using
Running worklet functions on the UI runtime
The Worklets library provides three functions for running a worklet function on the UI Runtime from the RN Runtime: scheduleOnUI, runOnUIAsync and runOnUISync.
Testing with Jest
React Native Worklets is primarily a native library, for that reason it requires a proper setup to be tested with Jest. This guide will show you how to set it up when testing in a React Native project.
Troubleshooting
Failed to create a worklet
Worklet Syntax plugin
What is the Worklet Syntax plugin? \