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.

CodingPack: Vercel skillslinkreact-native-skills
Author
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 pick vercel-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.

Open the source

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.

More from the pack Vercel skills

React and Next.js performance rules

Gives the agent Vercel's 70 React and Next.js performance rules, ranked by impact: request waterfalls, bundle size, server work, re-renders, rendering. Use when writing, refactoring or reviewing React or Next.js code for speed.

React composition patterns

Applies eight Vercel rules that replace boolean props with compound components, provider-held state and explicit variants, plus React 19 ref and use() changes. Use when a component has too many flags or when designing a component library.

React view transitions

Implements animations with React's View Transition API: shared element morphs, Suspense reveals, list reorder and directional route slides, with CSS recipes and Next.js integration. Use when adding page or state transitions to a React or Next.js app.

Deploy to Vercel, Vercel Labs

Deploys a project to Vercel as a preview, choosing git push, CLI deploy, linking first or a temporary deploy without an account by the project's state, and returns the URL. Use when asked to deploy an app and get a link.

Vercel CLI with tokens

Runs the Vercel CLI from an access token instead of a browser login: finds the token, deploys previews, manages env vars, logs and domains, keeps the token out of command flags. Use when working with Vercel from a non-interactive shell.

Vercel cost and performance tuning

Audits a deployed Vercel project for cost and performance: collects metrics first, picks candidates by fixed thresholds, inspects only flagged routes and returns verified, cited recommendations. Use when cutting a Vercel bill or fixing slow routes.

Web Interface Guidelines review

Reviews UI code against Vercel's Web Interface Guidelines, fetched fresh on each run, and lists findings as file:line: accessibility, focus, forms, animation, typography, images, performance. Use when checking components or pages before a pull request.

Writing Guidelines review

Reviews docs and prose against Vercel's writing handbook, fetched fresh on each run, and lists findings as file:line: voice, structure, headings, code samples, units, typography. Use when checking English docs before publishing.