Skip to content
Skillpedia
Mobile apps41k Β· #6700

react-native-architecture

What it does

This skill helps build mobile apps using React Native and Expo. It provides a ready-to-use structure with code organization, screen navigation, and features like offline access.

When to use it

  • βœ“When starting a new mobile app project.
  • βœ“When you need an organized way to navigate between app screens.
  • βœ“If the app needs to work even without an internet connection.

Skill link

https://github.com/wshobson/agents/blob/main/plugins/frontend-mobile-development/skills/react-native-architecture/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/frontend-mobile-development/skills/react-native-architecture/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œHow can I organize my code for a new React Native app?”

5 new skills a week. 1 minute to read.

How it works

The skill suggests a folder structure to organize your app's code. It also shows how to set up screen navigation and provides tips for the app to perform well, even offline.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

React Native Architecture

Production-ready patterns for React Native development with Expo, including navigation, state management, native modules, and offline-first architecture.

When to Use This Skill

  • Starting a new React Native or Expo project
  • Implementing complex navigation patterns
  • Integrating native modules and platform APIs
  • Building offline-first mobile applications
  • Optimizing React Native performance
  • Setting up CI/CD for mobile releases

Core Concepts

1. Project Structure

src/
β”œβ”€β”€ app/                    # Expo Router screens
β”‚   β”œβ”€β”€ (auth)/            # Auth group
β”‚   β”œβ”€β”€ (tabs)/            # Tab navigation
β”‚   └── _layout.tsx        # Root layout
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/                # Reusable UI components
β”‚   └── features/          # Feature-specific components
β”œβ”€β”€ hooks/                 # Custom hooks
β”œβ”€β”€ services/              # API and native services
β”œβ”€β”€ stores/                # State management
β”œβ”€β”€ utils/                 # Utilities
└── types/                 # TypeScript types

2. Expo vs Bare React Native

Feature Expo Bare RN
Setup complexity Low High
Native modules EAS Build Manual linking
OTA updates Built-in Manual setup
Build service EAS Custom CI
Custom native code Config plugins Direct access

Quick Start

# Create new Expo project
npx create-expo-app@latest my-app -t expo-template-blank-typescript

# Install essential dependencies
npx expo install expo-router expo-status-bar react-native-safe-area-context
npx expo install @react-native-async-storage/async-storage
npx expo install expo-secure-store expo-haptics
// app/_layout.tsx
import { Stack } from 'expo-router'
import { ThemeProvider } from '@/providers/ThemeProvider'
import { QueryProvider } from '@/providers/QueryProvider'

export default function RootLayout() {
  return (
    <QueryProvider>
      <ThemeProvider>
        <Stack screenOptions={{ headerShown: false }}>
          <Stack.Screen name="(tabs)" />
          <Stack.Screen name="(auth)" />
          <Stack.Screen name="modal" options={{ presentation: 'modal' }} />
        </Stack>
      </ThemeProvider>
    </QueryProvider>
  )
}

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

Do's

  • Use Expo - Faster development, OTA updates, managed native code
  • FlashList over FlatList - Better performance for long lists
  • Memoize components - Prevent unnecessary re-renders
  • Use Reanimated - 60fps animations on native thread
  • Test on real devices - Simulators miss real-world issues

Don'ts

  • Don't inline styles - Use StyleSheet.create for performance
  • Don't fetch in render - Use useEffect or React Query
  • Don't ignore platform differences - Test on both iOS and Android
  • Don't store secrets in code - Use environment variables
  • Don't skip error boundaries - Mobile crashes are unforgiving
FAQ

What is Expo?

Expo is a tool that simplifies React Native app development by handling many complex configurations for you.

What does 'offline-first' mean?

It means the app is designed to work even when the user has no internet connection, storing data to sync later.

Do I need to know native programming (Swift/Kotlin)?

Generally no. Expo and React Native handle most of that, but the skill mentions the possibility of integrating native code if needed.

Details

Original description by the author

Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.

repo: wshobson/agents

Popularity

GitHub stars
41k
Ranking position
#6700
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills