runOnJS
runOnJS lets you asynchronously run non-workletized functions that couldn't otherwise run on the UI thread. This applies to most external libraries as they don't have their functions marked with "worklet"; directive.
runOnUI
runOnUI lets you asynchronously run workletized functions on the UI thread.
runOnUIAsync
runOnUIAsync lets you asynchronously run workletized functions on the UI thread.
executeOnUIRuntimeSync
executeOnUIRuntimeSync lets you run a workletized function synchronously on the UI thread.
runOnRuntime
runOnRuntime lets you asynchronously run workletized functions on a separate worklet runtime on a separate thread.
createWorkletRuntime
createWorkletRuntime lets you create a new JS runtime which can be used to run worklets possibly on different threads than JS or UI thread. This function is supposed to be used by third-party libraries that need to integrate with worklets. The return value represents the runtime and it's supposed to be passed to C++ side using JSI (JavaScript Interface) for further operations.
getRuntimeKind
getRuntimeKind allows you to get the kind of the current runtime. It's useful in advanced scenarios, where you need to check the runtime kind before executing certain code paths or where you need to have separate implementations per runtime.
isWorkletFunction
isWorkletFunction checks if a function is a worklet function. It only works with Reanimated Babel plugin enabled. Unless you are doing something with internals of Reanimated you shouldn't need to use this function.
callMicrotasks
callMicrotasks flushes the microtask queue from the UI thread.