
React Native & Expo Guide
FreeComprehensive guide for React Native and Expo development.
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 source1. Install with the skills CLI
npx skills add minimax-ai/skills/react-native-dev --agent claude-code2. 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-aiReact 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:
- references/navigation.md — Expo Router: Stack, Tabs, NativeTabs (
headerLargeTitle,headerBackButtonDisplayMode), links, modals, sheets, context menus - references/components.md — FlashList patterns,
expo-image, safe areas (contentInsetAdjustmentBehavior), native controls, blur/glass effects, storage - references/styling.md — StyleSheet, NativeWind/Tailwind, platform styles, theming, dark mode
- references/animations.md — Reanimated 3: entering/exiting, shared values, gestures, scroll-driven
- references/state-management.md — Zustand (selectors, persist), Jotai (atoms, derived), React Query, Context
- references/forms.md — React Hook Form + Zod: validation, multi-step, dynamic arrays
- references/networking.md — fetch wrapper, React Query (optimistic updates), auth tokens, offline, API routes, webhooks
- references/performance.md — Profiling workflow, FlashList +
memo, bundle analysis, TTI, memory leaks, animation perf - references/testing.md — Jest, React Native Testing Library, E2E with Maestro
- references/native-capabilities.md — Camera, location, permissions (
use*Permissionshooks), haptics, notifications, biometrics - references/engineering.md — Project layout (
components/ui/,stores/,services/), path aliases, SDK upgrades, EAS build/submit, CI/CD, DOM components
Quick Reference
Component Preferences
| Purpose | Use | Instead of |
|---|---|---|
| Lists | FlashList (@shopify/flash-list) + memo items | FlatList (no view recycling) |
| Images | expo-image | RN <Image> (no cache, no WebP) |
| Press | Pressable | TouchableOpacity (legacy) |
| Audio | expo-audio | expo-av (deprecated) |
| Video | expo-video | expo-av (deprecated) |
| Animations | Reanimated 3 | RN Animated API (limited) |
| Gestures | Gesture Handler | PanResponder (legacy) |
| Platform check | process.env.EXPO_OS | Platform.OS |
| Context | React.use() | React.useContext() (React 18) |
| Safe area scroll | contentInsetAdjustmentBehavior="automatic" | <SafeAreaView> |
| SF Symbols | expo-image with source="sf:name" | expo-symbols |
Scaling Up
| Situation | Consider |
|---|---|
| Long lists with scroll jank | Virtualized list libraries (e.g. FlashList) |
| Want Tailwind-style classes | NativeWind v4 |
| High-frequency storage reads | Sync-based storage (e.g. MMKV) |
| New project with Expo | Expo Router over bare React Navigation |
State Management
| State Type | Solution |
|---|---|
| Local UI state | useState / useReducer |
| Shared app state | Zustand or Jotai |
| Server / async data | React Query |
| Form state | React Hook Form + Zod |
Performance Priorities
| Priority | Issue | Fix |
|---|---|---|
| CRITICAL | Long list jank | FlashList + memoized items |
| CRITICAL | Large bundle | Avoid barrel imports, enable R8 |
| HIGH | Too many re-renders | Zustand selectors, React Compiler |
| HIGH | Slow startup | Disable bundle compression, native nav |
| MEDIUM | Animation drops | Only 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:
- Set entry point in
package.json:"main": "expo-router/entry" - Add scheme in
app.json:"scheme": "my-app" - Delete
App.tsxandindex.ts - Create
app/_layout.tsxas root Stack layout - Create
app/(tabs)/_layout.tsxfor tab navigation - 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.jsonpath aliases configured -
EXPO_PUBLIC_API_URLenv var set per environment - Root layout has
GestureHandlerRootView(if using gestures) -
contentInsetAdjustmentBehavior="automatic"on all scroll views -
FlashListinstead ofFlatListfor lists > 20 items
Before Shipping
- Profile in
--profilemode, 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
Android App Development
Comprehensive guide for Android and cross-platform app development.
Add App Clip to Expo App
Integrate lightweight iOS App Clips into your Expo project.
APK Reverse
Streamline your Android APK reverse engineering process.
Swift Expert
Master iOS/macOS development with Swift and SwiftUI.
React Native Expert
Build and optimize mobile apps with React Native and Expo.
Kotlin Specialist
Master idiomatic Kotlin with expert patterns and practices.
