Multithreading

Software Mansion's best practices for multithreading in React Native apps using react-native-worklets. Use when running JavaScript on multiple threads, offloading heavy computation from the JS thread, communicating between runtimes, or sharing data across threads. Trigger on: 'worklet', 'worklets', 'react-native-worklets', 'runOnUI', 'runOnJS', 'scheduleOnUI', 'scheduleOnRN', 'scheduleOnRuntime', 'createWorkletRuntime', 'background thread', 'UI thread', 'worker runtime', 'Serializable', 'Synchronizable', 'multithreading', 'parallel execution', 'offload computation', 'background processing', 'Bundle Mode', or any request to move work off the JS thread in a React Native app.

kingstinct a1393ec 4 files · 25.4 KB Updated

File contents

kingstinct/react-native-healthkit/tree/main/.agents/skills/react-native-best-practices/references/multithreading commit a1393ec085

Frequently asked questions

npx skillmds@latest add kingstinct/multithreading