New to Claude Skills? Learn how to install them →

minimax-ai on GitHub

React Native & Expo Guide

Free

Comprehensive guide for React Native and Expo development.

by minimax-ai13.3k stars on minimax-ai/skills
1 views
Updated Apr 18, 2026
Get this skill

Free · Opens the source repo

What React Native & Expo Guide does

The React Native & Expo Development Guide is an essential resource for developers working on mobile applications using React Native and Expo. This guide provides a thorough overview of the components, styling options, animations, and navigation techniques necessary for building production-ready applications. It also covers critical topics such as state management, networking, performance optimization, and testing, making it a one-stop shop for developers at any stage of their project.

The guide is structured to facilitate easy navigation through various topics, with dedicated references for each major area. For instance, developers can consult the references on navigation to implement complex routing with Expo Router, or they can refer to the performance section to learn how to profile their applications and avoid common pitfalls like long list jank. The inclusion of practical examples and best practices ensures that users can apply the knowledge directly to their projects.

This skill is particularly beneficial for developers who are new to React Native or Expo, as well as those looking to enhance their existing applications with advanced features. By following the guidelines and recommendations provided, developers can streamline their workflow, improve application performance, and ultimately deliver a better user experience. The guide also addresses engineering concerns such as project structure, deployment strategies, and CI/CD setup, which are crucial for maintaining a robust development pipeline.

Overall, the React Native & Expo Development Guide is designed for developers and designers who want to build high-quality mobile applications efficiently, leveraging the full capabilities of React Native and Expo.

When to use it

Use this skill when starting a new React Native or Expo project, or when seeking to improve an existing application with advanced features and optimizations.

When not to use it

This skill may not be suitable for developers working exclusively with other frameworks or those looking for a generic mobile development guide without a focus on React Native or Expo.

What you can build with it

Starting a New React Native Project

Use this guide to set up your new React Native project efficiently, following best practices from the beginning.

Improving App Performance

Refer to the performance section to identify and resolve common performance issues in your existing applications.

Implementing Advanced Features

Leverage the guide's references to integrate animations, state management, and networking capabilities into your app.

How to install React Native & Expo Guide

View source

1. Install with the skills CLI

npx skills add minimax-ai/skills/react-native-dev --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by minimax-ai

React Native & Expo Development Guide

A practical guide for building production-ready React Native and Expo applications. Covers UI, animations, state, testing, performance, and deployment.

References

Consult these resources as needed:

Quick Reference

Component Preferences

PurposeUseInstead of
ListsFlashList (@shopify/flash-list) + memo itemsFlatList (no view recycling)
Imagesexpo-imageRN <Image> (no cache, no WebP)
PressPressableTouchableOpacity (legacy)
Audioexpo-audioexpo-av (deprecated)
Videoexpo-videoexpo-av (deprecated)
AnimationsReanimated 3RN Animated API (limited)
GesturesGesture HandlerPanResponder (legacy)
Platform checkprocess.env.EXPO_OSPlatform.OS
ContextReact.use()React.useContext() (React 18)
Safe area scrollcontentInsetAdjustmentBehavior="automatic"<SafeAreaView>
SF Symbolsexpo-image with source="sf:name"expo-symbols

Scaling Up

SituationConsider
Long lists with scroll jankVirtualized list libraries (e.g. FlashList)
Want Tailwind-style classesNativeWind v4
High-frequency storage readsSync-based storage (e.g. MMKV)
New project with ExpoExpo Router over bare React Navigation

State Management

State TypeSolution
Local UI stateuseState / useReducer
Shared app stateZustand or Jotai
Server / async dataReact Query
Form stateReact Hook Form + Zod

Performance Priorities

PriorityIssueFix
CRITICALLong list jankFlashList + memoized items
CRITICALLarge bundleAvoid barrel imports, enable R8
HIGHToo many re-rendersZustand selectors, React Compiler
HIGHSlow startupDisable bundle compression, native nav
MEDIUMAnimation dropsOnly animate transform/opacity

New Project Init

# 1. Create project
npx create-expo-app@latest my-app --template blank-typescript
cd my-app

# 2. Install Expo Router + core deps
npx expo install expo-router react-native-safe-area-context react-native-screens

# 3. (Optional) Common extras
npx expo install expo-image react-native-reanimated react-native-gesture-handler

Then configure:

  1. Set entry point in package.json: "main": "expo-router/entry"
  2. Add scheme in app.json: "scheme": "my-app"
  3. Delete App.tsx and index.ts
  4. Create app/_layout.tsx as root Stack layout
  5. Create app/(tabs)/_layout.tsx for tab navigation
  6. Create route files in app/(tabs)/ (see navigation.md)

For web support, also install: npx expo install react-native-web react-dom @expo/metro-runtime

Core Principles

Consult references before writing: when implementing navigation, lists, networking, or project setup, read the matching reference file above for patterns and pitfalls.

Try Expo Go first (npx expo start). Custom builds (eas build) only needed when using local Expo modules, Apple targets, or third-party native modules not in Expo Go.

Conditional rendering: use {count > 0 && <Text />} not {count && <Text />} (renders "0").

Animation rule: only animate transform and opacity — GPU-composited, no layout thrash.

Imports: always import directly from source, not barrel files — avoids bundle bloat.

Lists and images: before using FlatList or RN Image, check the Component Preferences table above — FlashList and expo-image are almost always the right choice.

Route files: always use kebab-case, never co-locate components/types/utils in app/.

Checklist

New Project Setup

  • tsconfig.json path aliases configured
  • EXPO_PUBLIC_API_URL env var set per environment
  • Root layout has GestureHandlerRootView (if using gestures)
  • contentInsetAdjustmentBehavior="automatic" on all scroll views
  • FlashList instead of FlatList for lists > 20 items

Before Shipping

  • Profile in --profile mode, fix frames > 16ms
  • Bundle analyzed (source-map-explorer), no barrel imports
  • R8 enabled for Android
  • Unit + component tests for critical paths
  • E2E flows for login, core feature, checkout

Flutter development → see flutter-dev skill. iOS native (UIKit/SwiftUI) → see ios-application-dev skill. Android native (Kotlin/Compose) → see android-native-dev skill.

React Native is a trademark of Meta Platforms, Inc. Expo is a trademark of 650 Industries, Inc. All other product names are trademarks of their respective owners.

Frequently asked questions about React Native & Expo Guide

Similar skills