React Native best practices
Applies Vercel's React Native and Expo rules: virtualized lists, transform and opacity animations, native navigators, expo-image, state, monorepo setup. Use when building or speeding up a mobile app or reviewing React Native code.
react-native-skills- Author
- Vercel
- Source
- vercel-labs/agent-skills/skills/react-native-skills @ 1a2c79d
- License
- MIT
About this skill
What it does
The skill is a set of rules for React Native and Expo apps, ranked by impact. SKILL.md lists about thirty in eight categories; rules/ holds 36 rule files, each with the reason and a wrong and a right example. AGENTS.md (about 74 KB) compiles them.
List performance is rated critical: a virtualizer such as FlashList or LegendList instead of a mapped ScrollView, even for short lists; memoized items that receive primitives; stable callbacks; no inline objects in renderItem; light items and item types for mixed lists. Animation: only transform and opacity, useDerivedValue, Gesture.Tap for press animations. Navigation: native stack and tabs over JavaScript navigators. UI: expo-image for every image, Galeria for lightboxes, Pressable instead of TouchableOpacity, native menus and modals, onLayout instead of measure(). Further down: minimal state, two React Compiler rules, strings always inside <Text>, and no {count && …} when the value can be 0 or "", which the rule says crashes in production. Monorepo rules keep native dependencies in the app package with one version everywhere; config rules cover fonts through a config plugin and hoisted Intl objects.
When to use it, and when not
Use it while building or tuning a React Native or Expo app: long feeds, janky animations, a monorepo that shares code with native modules.
It does not cover Expo workflows such as routing setup, EAS builds, store releases or SDK upgrades, and it is not meant for React on the web.
How to run it
We do not copy this skill: its frontmatter says MIT, but the repository ships no licence text to put beside a copy. Install it from Vercel's repository with the button to the source. Its README uses the skills.sh installer, npx skills add vercel-labs/agent-skills, with --skill vercel-react-native-skills for this one alone. The skill's name is vercel-react-native-skills:
- Claude Code:
/vercel-react-native-skills, or ask for the skill by name. - Codex:
$vercel-react-native-skills. - Cursor: type
/in the Agent chat and pickvercel-react-native-skills.
Example: /vercel-react-native-skills The chat list stutters when scrolling on Android. Review ChatList.tsx and its item component.
How it differs from similar skills
The Expo pack covers the platform. Native-feeling Expo screens is about look and behaviour: Apple HIG styling, @expo/ui controls, SF Symbols, Expo Go before custom builds. Expo Router navigation handles routes, and Expo and EAS overview sends Expo tasks to the right skill. This one is a performance checklist that also fits bare React Native. React and Next.js performance rules is its web counterpart.
Install
This skill is not copied to the catalog: the author's repository has no licence text. Install it from there.
Connect through AnyModel API
This skill runs on whatever model your agent uses. Point Claude Code, Codex or Cursor at AnyModel to run it on Claude, GPT, Gemini and more with one key — pay per token, no subscription.
AnyModel