animation-with-react-compiler
Installation
SKILL.md
Animation with React Compiler
Overview
Guidelines for using React Native Reanimated shared values with React Compiler. When using React Compiler, you must use the get() and set() methods instead of directly accessing the value property to ensure compatibility with React Compiler standards.
When to Apply
Reference these guidelines when:
- Working with React Compiler enabled projects
- Using
useSharedValuein components - Accessing or modifying shared value values
- Ensuring React Compiler compatibility with Reanimated
Key Guideline
Use get() and set() Methods Instead of .value
When working with the React Compiler, you should refrain from accessing and modifying the value property directly. Instead, use the get() and set() methods. They're the alternative API for useSharedValue, compliant with the React Compiler standards.