vercel-react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
Install
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-native-skills- title
- Animate Transform and Opacity Instead of Layout Properties
- impact
- HIGH
- impactDescription
- GPU-accelerated animations, no layout recalculation
- tags
- animation, performance, reanimated, transform, opacity
Animate Transform and Opacity Instead of Layout Properties
Avoid animating width, height, top, left, margin, or padding. These trigger layout recalculation on every frame. Instead, use transform (scale, translate) and opacity which run on the GPU without triggering layout.
Incorrect (animates height, triggers layout every frame):
Correct (animates scaleY, GPU-accelerated):
Correct (animates translateY for slide animations):
GPU-accelerated properties: transform (translate, scale, rotate), opacity. Everything else triggers layout.