Skip to content

Validation and quality guidance for Expo React Native projects across config, routing, SDK modules, updates, and builds.

CCM score
44 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Adds five skills: expo-config, expo-router, expo-modules, expo-updates, and expo-build for Expo React Native work
  • Covers app.json and app.config.ts settings, plugins, build profiles, and environment variables for Expo projects
  • Covers file-based routing with Expo Router, including layouts, dynamic routes, deep linking, and typed navigation
  • Designed for developers building React Native apps who want Expo-specific guidance inside Claude Code

Validation and quality enforcement for Expo React Native projects with config, router, modules, updates, and build skills.

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install expo@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Expo Build with EAS

Use this skill when building and deploying Expo applications using EAS (Expo Application Services) Build.

Key Concepts

EAS Build Configuration

// eas.json
{
  "cli": {
    "version": ">= 5.9.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "ios": {
        "simulator": true
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "autoIncrement": true
    }
  },
  "submit": {
    "production": {}
  }
}

Build Commands

# Development build
eas build --profile development --platform ios
eas build --profile development --platform android

# Preview build
eas build --profile preview --platform all

# Production build
eas build --profile production --platform all

# Local build
eas build --profile production --platform ios --local

Development Builds

{
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
}

Best Practices

Environment Variables

// eas.json
{
  "build": {
    "production": {
      "env": {
        "APP_ENV": "production",
        "API_URL": "https://api.myapp.com"
      }
    },
    "staging": {
      "env": {
        "APP_ENV": "staging",
        "API_URL": "https://staging-api.myapp.com"
      }
    }
  }
}

Secrets Management

# Set secrets
eas secret:create --scope project --name API_KEY --value your_api_key
eas secret:create --scope project --name GOOGLE_SERVICES_JSON --value "$(cat google-services.json)" --type file

# List secrets
eas secret:list

# Use in eas.json
{
  "build": {
    "production": {
      "env": {
        "API_KEY": "$(EAS_SECRET_API_KEY)"
      }
    }
  }
}

Version Management

// eas.json
{
  "build": {
    "production": {
      "autoIncrement": true,
      "ios": {
        "buildNumber": "1"
      },
      "android": {
        "versionCode": 1
      }
    }
  }
}

Build Hooks

{
  "build": {
    "production": {
      "prebuild": "npm run generate-assets",
      "postbuild": "npm run cleanup"
    }
  }
}

Common Patterns

Multi-Environment Builds

// eas.json
{
  "build": {
    "development": {
      "developmentClient": true,
      "channel": "development",
      "distribution": "internal"
    },
    "staging": {
      "channel": "staging",
      "distribution": "internal",
      "ios": {
        "bundleIdentifier": "com.myapp.staging"
      },
      "android": {
        "package": "com.myapp.staging"
      }
    },
    "production": {
      "channel": "production",
      "autoIncrement": true
    }
  }
}

Custom Native Code

{
  "build": {
    "production": {
      "ios": {
        "buildConfiguration": "Release"
      },
      "android": {
        "gradleCommand": ":app:bundleRelease"
      }
    }
  }
}

App Store Submission

# iOS
eas submit --platform ios

# Android
eas submit --platform android

# Configure submission
# eas.json
{
  "submit": {
    "production": {
      "ios": {
        "appleId": "your.apple.id@example.com",
        "ascAppId": "1234567890",
        "appleTeamId": "AB12CD34EF"
      },
      "android": {
        "serviceAccountKeyPath": "./service-account.json",
        "track": "production"
      }
    }
  }
}

Build Monitoring

# View build status
eas build:list

# View specific build
eas build:view [build-id]

# Cancel build
eas build:cancel [build-id]

Anti-Patterns

Don't Commit Secrets

// Bad - Secrets in eas.json
{
  "build": {
    "production": {
      "env": {
        "API_KEY": "sk_live_1234567890"
      }
    }
  }
}

// Good - Use EAS Secrets
eas secret:create --scope project --name API_KEY --value sk_live_1234567890

Don't Skip Version Increments

// Bad - Manual version management
{
  "build": {
    "production": {
      "autoIncrement": false
    }
  }
}

// Good - Auto increment
{
  "build": {
    "production": {
      "autoIncrement": true
    }
  }
}

Related Skills

  • expo-config: Configuring app for builds
  • expo-updates: OTA updates after builds

Readme

Expo

Validation and quality enforcement for Expo React Native projects.

Skills

This plugin provides the following skills:

  • expo-config: Configuring Expo apps with app.json, app.config.js/ts, and EAS configuration including plugins, build settings, and environment variables
  • expo-router: Implementing file-based routing with Expo Router including layouts, dynamic routes, navigation, and deep linking
  • expo-modules: Working with Expo SDK modules for camera, location, notifications, file system, and other device APIs
  • expo-updates: Implementing over-the-air (OTA) updates with Expo Updates for deploying changes without app store releases
  • expo-build: Building and deploying Expo apps with EAS Build including development builds, production builds, and app store submission

Installation

Install via the han CLI:

han plugin install expo

Requirements

  • Expo SDK 50 or higher
  • TypeScript 5.0 or higher
  • Node.js 18 or higher

Why Expo?

Expo is a framework and platform for React Native that makes mobile development faster and easier:

  • Managed Workflow: Build apps without touching native code
  • EAS (Expo Application Services): Cloud build, updates, and submission
  • Expo Router: File-based routing system
  • Rich SDK: 50+ modules for device features (camera, location, etc.)
  • OTA Updates: Deploy updates instantly without app store review
  • Universal Apps: Share code across iOS, Android, and web
  • Developer Experience: Fast refresh, debugging tools, and documentation

Features Covered by Skills

Configuration (app.json/app.config.ts)

  • App metadata and settings
  • Platform-specific configuration
  • Plugin system
  • Environment variables
  • Build profiles
  • Deep linking setup

Expo Router

  • File-based routing
  • Stack, tab, and drawer navigation
  • Dynamic routes with parameters
  • Layouts and nested routes
  • Route groups
  • Authentication flows
  • Modal routes
  • Type-safe navigation

Expo Modules (SDK)

  • Camera and image picker
  • Location and maps
  • Push notifications
  • File system and storage
  • Secure storage
  • Device information
  • Background tasks
  • Sharing and permissions

OTA Updates

  • Automatic update checking
  • Manual update triggers
  • Update channels
  • Runtime versions
  • Silent updates
  • Update UI patterns

EAS Build

  • Development builds
  • Preview and production builds
  • Environment configuration
  • Secrets management
  • Version management
  • App store submission
  • Build monitoring

Quick Start Examples

Create New Expo App

npx create-expo-app@latest my-app
cd my-app

Basic Expo Router App

// app/_layout.tsx
import { Stack } from 'expo-router';

export default function RootLayout() {
  return <Stack />;
}

// app/index.tsx
import { Link } from 'expo-router';
import { View, Text } from 'react-native';

export default function Home() {
  return (
    <View>
      <Text>Home Screen</Text>
      <Link href="/details">Go to Details</Link>
    </View>
  );
}

// app/details.tsx
export default function Details() {
  return (
    <View>
      <Text>Details Screen</Text>
    </View>
  );
}

Using Expo Modules

import { Camera } from 'expo-camera';
import * as Location from 'expo-location';
import * as Notifications from 'expo-notifications';

// Request permissions and use modules
const [cameraPermission] = Camera.useCameraPermissions();

Configure for Production

// app.config.ts
export default {
  name: 'MyApp',
  slug: 'my-app',
  version: '1.0.0',
  extra: {
    apiUrl: process.env.API_URL,
  },
  plugins: [
    'expo-router',
    'expo-camera',
    'expo-location',
  ],
};

Build with EAS

# Install EAS CLI
npm install -g eas-cli

# Login
eas login

# Configure project
eas build:configure

# Build for iOS
eas build --platform ios --profile production

# Build for Android
eas build --platform android --profile production

Project Structure

Recommended structure for Expo apps with Expo Router:

my-app/
├── app/                  # Routes (file-based routing)
│   ├── (tabs)/          # Tab navigation group
│   │   ├── _layout.tsx
│   │   ├── index.tsx
│   │   └── profile.tsx
│   ├── _layout.tsx      # Root layout
│   └── index.tsx        # Home route
├── components/          # Reusable components
├── hooks/               # Custom hooks
├── utils/               # Utility functions
├── assets/              # Images, fonts, etc.
├── app.json             # Expo configuration
├── eas.json             # EAS Build configuration
├── package.json
└── tsconfig.json

Common Expo Modules

Essential modules for most Expo apps:

  • expo-router: File-based navigation
  • expo-camera: Camera access
  • expo-location: Location services
  • expo-notifications: Push notifications
  • expo-image-picker: Select images/videos
  • expo-file-system: File operations
  • expo-secure-store: Encrypted storage
  • expo-constants: App and device info
  • expo-linking: Deep linking
  • expo-updates: OTA updates

Development Workflow

Typical Expo development workflow:

  1. Development: npx expo start - Start dev server
  2. Testing: Test on iOS Simulator, Android Emulator, or physical devices
  3. Preview Build: eas build --profile preview - Internal testing
  4. Production Build: eas build --profile production - App store release
  5. OTA Updates: eas update - Deploy JS updates instantly

Testing

Expo apps can be tested with:

  • Jest: Unit testing (included by default)
  • Detox: End-to-end testing
  • Expo Go: Quick testing without builds
  • Development Builds: Test with native code

Expo vs Bare React Native

Expo provides:

  • Managed workflow (no native code needed)
  • EAS cloud services
  • Rich module ecosystem
  • Faster development
  • OTA updates out of the box

Choose bare React Native when you need:

  • Custom native modules not in Expo
  • Full control over native code
  • Specific third-party native libraries

Details

Marketplace
TheBushidoCollective/han
Source
plugins/frameworks/expo
Category
Framework
Keywords
expo, react-native, mobile, ios, android
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to expo

More Mobile Apps