vercel-react-native-skills

Applies React Native and Expo performance rules to component, list, and animation code.

Updated Sep 6, 2026
One-click install
npx skills add https://github.com/AbuBakar125-co/Resturant_web --skill vercel-react-native-skills-abubakar125-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-native-skills
Source: https://github.com/AbuBakar125-co/Resturant_web/tree/main/agent/skills/vercel-react-native-skills
Command: npx skills add https://github.com/AbuBakar125-co/Resturant_web --skill vercel-react-native-skills-abubakar125-co

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? React Native apps frequently suffer from scroll jank, unnecessary re-renders, runtime crashes from falsy JSX rendering, and slow animations caused by layout-property animation. This Skill provides a prioritized rule set that guides AI agents and developers to write performant, crash-free React Native and Expo code. ## Core Features & Use Cases - Prioritized Rule Set: 35+ rules across 13 categories ranked by impact from CRITICAL (core rendering, list virtualization) to LOW (fonts, imports), each with incorrect vs. correct code examples. - List and Animation Optimization: Concrete patterns for LegendList/FlashList virtualization, memoization with primitive props, Reanimated shared values, and GestureDetector press states. - Use Case: When refactoring a slow product feed screen, apply the list-performance rules to replace ScrollView with a virtualized list, pass primitives to memoized row components, and serve compressed thumbnail images. ## Quick Start Ask the agent to review your React Native screen component against these best practices and fix any list performance or rendering violations it finds.

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?

Replace ScrollView with a virtualized list like LegendList or FlashList, pass primitive props to memoized list items, hoist callbacks to the list root, and avoid creating inline objects in renderItem. Keep list items lightweight by moving queries and expensive computations to the parent.

Why does my React Native app crash with conditional rendering?

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 a ternary with null, explicit boolean coercion, or an early return instead.

Should I animate width and height in React Native Reanimated?

No. Animating width, height, margin, or padding triggers layout recalculation on every frame. Animate transform properties like scale and translate, plus opacity, which run on the GPU without triggering layout.

Does React Compiler change how I use Reanimated shared values?

Yes. With React Compiler enabled, use .get() and .set() methods instead of reading or writing .value directly on shared values, because the compiler cannot track property access. The compiler also reduces the need for manual memo() and useCallback().

When should I use native navigators instead of JS navigators?

Always prefer native navigators such as @react-navigation/native-stack or expo-router's default stack over @react-navigation/stack. Native navigators use platform APIs for UI-thread transitions, iOS large titles, and proper safe area handling.