createWorkletRuntimeForThread

function createWorkletRuntimeForThread(thread: NativeThread): WorkletRuntime

Creates a new WorkletRuntime that schedules its work on the given NativeThread.

This wraps a Camera-owned NativeThread in a react-native-worklets WorkletRuntime so that Worklets (such as Frame Processors) can run directly on the Camera pipeline's thread without context switching.

On this page

No Headings