vercel-react-native-skills

Applies React Native and Expo performance rules to mobile app code generation and refactoring.

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill vercel-react-native-skills-ferrarifankid04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-native-skills
Source: https://github.com/ferrarifankid04/ai-skills-public/tree/main/claude-code/skills/vercel-react-native-skills
Command: npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill vercel-react-native-skills-ferrarifankid04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? React Native apps frequently suffer from scroll jank, render thrashing, crashes from falsy JSX rendering, and slow animations caused by common coding mistakes. This Skill provides 35+ prioritized rules so an AI agent generates and refactors React Native code that follows proven performance patterns from the start. ## Core Features & Use Cases - Prioritized Rule Set: 35+ rules across 13 categories ranked by impact, from CRITICAL (avoid falsy && rendering, wrap strings in Text) to LOW (hoist Intl formatters, build-time font loading). - List and Animation Optimization: Covers virtualized lists (LegendList, FlashList), memoization with primitive props, stable object references, GPU-accelerated transform/opacity animations, and Reanimated patterns. - Platform Guidance: Rules for native navigators, native modals, expo-image, safe areas, monorepo dependency management, and React Compiler compatibility. - Use Case: When asking an agent to build a feed screen, it will use a virtualized list with stable references, compressed images, and lightweight memoized items instead of a ScrollView with inline objects. ## Quick Start Review my React Native feed screen component and refactor it to follow the list performance and animation best practices.

Frequently Asked Questions about vercel-react-native-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize FlatList performance in React Native?

Use a virtualized list like LegendList or FlashList instead of ScrollView, pass primitive props to memoized list items, hoist callbacks to the list root, and keep object references stable. Avoid inline objects in renderItem since new references break memoization.

What causes React Native apps to crash with falsy values in JSX?

Using {value && <Component />} crashes when value is an empty string or 0, because React Native tries to render the falsy value as text outside a Text component. Use ternaries, explicit boolean coercion, or early returns instead.

Should I use FlashList or LegendList for React Native lists?

Both are supported virtualizers that render only visible items, reducing memory and mount time compared to ScrollView. LegendList additionally supports getItemType for heterogeneous lists with separate recycling pools per item type.

Does this work with the React Compiler enabled?

Yes, several rules address React Compiler compatibility, such as destructuring functions early in render and using .get()/.set() on Reanimated shared values. With the compiler enabled, manual memo() and useCallback() optimizations become less critical.

Why should animations avoid width and height in React Native?

Animating layout properties like width, height, or margin triggers layout recalculation on every frame, causing jank. Animate transform (scale, translate) and opacity instead, since these run on the GPU without triggering layout.

How do I track scroll position without causing jank?

Never store scroll position in useState, because rapid scroll events cause render thrashing and dropped frames. Use a Reanimated shared value for animations or a ref for non-reactive tracking instead.