Utility
Inspect where your code is running and which Worklets features are available. See Runtime kinds for the difference between the RN, UI, and Worker Runtimes.
Identify the runtime and thread
getRuntimeKind— Get the kind of runtime executing the current code.getCurrentThreadId— Get the platform-specific ID of the executing thread. A runtime and a thread are different things.
Check the runtime kind
isRNRuntime— Check whether code is running on the React Native runtime.isUIRuntime— Check whether code is running on the UI Runtime.isWorkerRuntime— Check whether code is running on a Worker Runtime.isWorkletRuntime— Check whether code is running on either a UI or Worker Runtime.
Check functions and configuration
isWorkletFunction— Check whether a function has been workletized.isBundleModeEnabled— Check whether Bundle Mode is enabled.