React Native Best Practices
Official React Native skill from Vercel Labs. Applies 16 curated rules across 7 sections to help AI tools write performant, idiomatic React Native code — compatible with both bare workflow and Expo.
Covers both React Native CLI and Expo workflows. Rules are practical, battle-tested patterns from production mobile apps.
What This Skill Covers
7 Rule Sections
- Performance — FlatList optimization, unnecessary re-renders, memoization
- Navigation — React Navigation patterns, deep linking, tab structure
- State Management — Local vs global state, async storage, persistence
- Styling — StyleSheet API, platform-specific styles, responsive layouts
- Platform Handling — iOS/Android differences, Platform.select usage
- Expo — EAS Build, Expo Router, managed vs bare workflow
- Testing — Jest, RNTL (React Native Testing Library), E2E with Detox
Key Rules
Performance
- Use
FlatListwithkeyExtractorfor all scrollable lists - Avoid anonymous functions in JSX props for frequently-rendered components
- Use
InteractionManagerfor post-animation heavy operations
Navigation
- Define screen params with TypeScript for type-safe navigation
- Use nested navigators sparingly — prefer flat navigation hierarchies
- Handle deep links at the root navigator level
Expo
- Use
expo-constantsfor environment-specific configuration - Prefer
expo-routerfor file-based routing in new projects - Use EAS Build for over-the-air updates and CI/CD pipelines
Installation
BASH
# Claude Code
claude skills add https://github.com/vercel-labs/agent-skills/tree/main/react-native-skills
Use Cases
- Building new screens or components in React Native
- Auditing existing mobile code for performance issues
- Setting up navigation structure for a new app
- Configuring Expo EAS Build and deployment pipelines