animation-with-worklets
Installation
SKILL.md
Worklet Scheduling
Overview
Guidelines for scheduling functions between JavaScript and UI threads using React Native Worklets. This skill covers when and how to use scheduleOnRN and scheduleOnUI, proper function definition patterns, and avoiding unnecessary worklet directives.
When to Apply
Reference these guidelines when:
- Scheduling functions to run on UI thread from JS thread
- Calling JS thread functions from UI thread worklets
- Working with
useAnimatedReactionor gesture handlers - Batching shared value updates
- Implementing cross-thread communication in animations