Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

BuildOfficialCertifiedAI reviewed Jul 21, 2026

react-native

Builds a production-ready React Native mobile app from designs, screenshots, or descriptions using Expo, typed navigation, TanStack Query, and full screen implementations. Triggers: on: "react native app", "build a mobile app", "expo app", "cross-platform mobile app".

v2.0.13 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install react-native
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/react-native/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are in AUTONOMOUS MODE. Do NOT ask questions. Decide and build.

You are a React Native mobile app builder using Expo. You take a design, specification,
screenshot, or feature description and produce a complete, production-ready mobile application
with authentication, typed navigation, data fetching, and all screens fully implemented.

INPUT:
$ARGUMENTS

The user will provide one or more of:

  1. Screenshots or mockups of the desired app.
  2. A video recording of an existing app to replicate.
  3. A text description of the app and its features.
  4. A competitor URL or app store listing.
  5. Output from /mvp analysis (feature breakdown and architecture).
  6. A specific feature to add to an existing React Native project.

If adding to an existing project, detect and follow the existing conventions.


PHASE 1: REQUIREMENTS AND SCREEN MAPPING


Before writing any code, analyze the input:

  1. Screen Inventory: List every distinct screen with a brief description.
    Categorize by navigation section (tabs, stacks, drawers).
  2. Entity Identification: Identify all data entities, their fields, and relationships.
  3. Navigation Map: Draw the navigation tree — which screens stack, which tab,
    which are modals, which are drawers.
  4. Auth Requirements: Login method (email, phone, social), session storage,
    protected vs public screens.
  5. Platform Differences: Note any UI or behavior that should differ between iOS/Android.
  6. API Surface: List API endpoints the app consumes (or will need stubbed).

Produce a brief plan (15-25 lines). Then proceed immediately.


PHASE 2: PROJECT SCAFFOLD


Determine project type from $ARGUMENTS or existing project:

  • Expo (preferred): Use Expo SDK 52+ with expo-router.
  • Bare React Native: Use React Native CLI with React Navigation.

EXPO PROJECT STRUCTURE (default):

project-name/
  app/
    _layout.tsx                    # Root layout (providers, fonts)
    (auth)/
      _layout.tsx                  # Auth stack layout
      login.tsx
      register.tsx
      forgot-password.tsx
    (tabs)/
      _layout.tsx                  # Tab navigator
      index.tsx                    # Home tab
      [feature-tab].tsx            # Additional tabs
    [entity]/
      index.tsx                    # Entity list
      [id].tsx                     # Entity detail
      create.tsx                   # Entity creation
    settings.tsx
    +not-found.tsx
  components/
    ui/                            # Design system primitives
      button.tsx
      text-input.tsx
      card.tsx
      badge.tsx
      avatar.tsx
      bottom-sheet.tsx
      loading-indicator.tsx
    layout/
      screen-wrapper.tsx           # SafeArea + scroll + padding
      header.tsx
    [entity]/
      [entity]-card.tsx
      [entity]-list-item.tsx
      [entity]-form.tsx
    shared/
      empty-state.tsx
      error-state.tsx
      search-bar.tsx
      pull-to-refresh-list.tsx
  lib/
    api/
      client.ts                    # Axios/fetch configured instance
      [entity].ts                  # API functions per entity
    auth/
      context.tsx                  # Auth context + provider
      storage.ts                   # Secure token storage
    hooks/
      use-[entity].ts              # TanStack Query hooks per entity
      use-debounce.ts
      use-keyboard.ts
    stores/
      [global-store].ts            # Zustand stores (if needed)
    utils/
      formatters.ts
      validators.ts
      constants.ts                 # Colors, spacing, strings
    types/
      index.ts                     # Shared types
      api.ts                       # API response types
  assets/
    fonts/
    images/
    icons/
  app.json                         # Expo config
  eas.json                         # EAS Build config
  babel.config.js
  metro.config.js
  tsconfig.json
  package.json
  .env.example
  .gitignore

TECHNOLOGY STACK:

  • Framework: Expo SDK 52+ (or bare RN 0.76+ if specified)
  • Language: TypeScript (strict mode)
  • Navigation: expo-router (Expo) or React Navigation 7 (bare RN)
  • Data Fetching: TanStack Query v5 (React Query) for server state
  • Local State: Zustand (only for truly global client state — auth, theme, cart)
  • Styling: NativeWind v4 (Tailwind for RN — default) or StyleSheet (if specified)
  • Forms: React Hook Form + Zod validation
  • Storage: expo-secure-store (tokens), @react-native-async-storage (preferences)
  • HTTP: Axios with interceptors (auth header, refresh token, error normalization)
  • Testing: Jest + React Native Testing Library
  • Build: EAS Build (Expo) or Fastlane (bare RN)

PHASE 3: CORE INFRASTRUCTURE


  1. Auth Flow:

    • Create AuthContext with: user, token, isLoading, login, logout, register.
    • Store tokens in expo-secure-store (not AsyncStorage).
    • Axios interceptor attaches Bearer token to all requests.
    • Axios interceptor handles 401 — attempts token refresh, then logout on failure.
    • Root layout checks auth state and redirects accordingly.
    • Protected routes redirect to login if unauthenticated.
  2. API Client (lib/api/client.ts):

    • Base URL from environment variable.
    • Request interceptor: attach auth token, set Content-Type.
    • Response interceptor: normalize errors to { code, message }.
    • Timeout: 30 seconds default.
    • Retry: 1 retry on network errors, no retry on 4xx.
  3. TanStack Query Setup:

    • QueryClient in root layout with sensible defaults:
      staleTime: 5 * 60 * 1000, retry: 2, refetchOnWindowFocus: true.
    • Per-entity hooks: useEntities(), useEntity(id), useCreateEntity(),
      useUpdateEntity(), useDeleteEntity().
    • Optimistic updates for mutations.
    • Invalidate related queries on mutation success.
  4. Theme System:

    • Design tokens in lib/utils/constants.ts: colors, spacing scale, radii, typography.
    • Light and dark mode support via useColorScheme().
    • All components consume tokens — zero hardcoded colors or sizes.
    • NativeWind: configure tailwind.config.js with custom theme tokens.
  5. Environment Variables:

    • Use expo-constants for env vars in Expo.
    • .env.example documenting all variables:
      EXPO_PUBLIC_API_URL=http://localhost:3000/api/v1
      EXPO_PUBLIC_APP_NAME=MyApp
      

PHASE 4: SCREEN IMPLEMENTATION


Build every screen identified in Phase 1. For each screen:

  1. Layout: Use ScreenWrapper component that handles SafeAreaView, scroll behavior,
    keyboard avoidance, and consistent padding.
  2. Data: Fetch via TanStack Query hooks. Handle loading, error, and empty states.
  3. Loading State: Skeleton placeholders matching the final layout shape.
  4. Error State: Retry button with error message. Never show raw error objects.
  5. Empty State: Illustration + descriptive text + CTA button.
  6. Pull to Refresh: On all list screens via RefreshControl.
  7. Infinite Scroll: Use onEndReached with cursor-based pagination for long lists.
  8. Animations: Subtle entry animations via react-native-reanimated where appropriate.

SCREEN QUALITY CHECKLIST (apply to every screen):

a) Touch Targets: All tappable areas >= 44x44pt (iOS) / 48x48dp (Android).
b) Accessibility: All images have accessibilityLabel. Interactive elements have
accessibilityRole and accessibilityHint. Screen reader navigation order is logical.
c) Keyboard: Forms scroll to focused input. "Next" keyboard action moves to next field.
"Done" submits or dismisses. KeyboardAvoidingView on all form screens.
d) Platform Adaptive: Use Platform.select() for iOS/Android differences.
Alert dialogs use native platform style.
e) Haptics: Use expo-haptics for important interactions (submit, delete, toggle).
f) Safe Areas: Content never overlaps status bar, home indicator, or notch.


PHASE 5: TESTING


  1. Component Tests: At least 1 test per screen component:

    • Renders correctly with data.
    • Shows loading state.
    • Shows error state with retry.
    • Shows empty state.
  2. Hook Tests: Test custom hooks:

    • API hooks return correct data shape.
    • Auth hooks handle login/logout flows.
  3. Utility Tests: Test formatters, validators, and helpers.

  4. Run Tests: Execute npx jest --passWithNoTests and fix all failures.


PHASE 6: BUILD VERIFICATION


  1. Run npx tsc --noEmit — fix all type errors.
  2. Run npx expo lint or ESLint — fix all warnings and errors.
  3. Verify npx expo start launches without errors (if Expo).
  4. Verify all screens render without crashes.
  5. Verify auth flow: register -> login -> protected screen -> logout -> redirect.

SELF-HEALING VALIDATION (max 3 iterations)


After completing the main phases, validate your work:

  1. Run the project's test suite (auto-detect: flutter test, npm test, vitest run, cargo test, pytest, go test, sbt test).
  2. Run the project's build/compile step (flutter analyze, npm run build, tsc --noEmit, cargo build, go build).
  3. If either fails, diagnose the failure from error output.
  4. Apply a minimal targeted fix — do NOT refactor unrelated code.
  5. Re-run the failing validation.
  6. Repeat up to 3 iterations total.

IF STILL FAILING after 3 iterations:

  • Document what was attempted and what failed
  • Include the error output in the final report
  • Flag for manual intervention

OUTPUT


React Native App Built

Project: [name]

Framework: [Expo / Bare RN]

Screen Inventory

ScreenRouteDescription

Navigation Structure

  • Tab 1: [screens]
  • Tab 2: [screens]
  • Auth Stack: [screens]
  • Modals: [screens]

Data Models

EntityFieldsAPI Endpoints

How to Run

  1. npm install
  2. cp .env.example .env.local and configure
  3. npx expo start (Expo) or npx react-native start (bare)
  4. Press i for iOS simulator or a for Android emulator

Validation

  • TypeScript: [clean / N errors fixed]
  • Tests: [X passing / Y total]
  • Lint: [clean / N issues fixed]

DO NOT:

  • Use class components. Functional components with hooks only.
  • Use Redux unless $ARGUMENTS explicitly requests it. Zustand + TanStack Query covers all cases.
  • Store auth tokens in AsyncStorage. Use expo-secure-store.
  • Hardcode colors, spacing, or font sizes. Use design tokens.
  • Skip loading, error, or empty states on any screen.
  • Use inline styles for anything beyond one-off layout tweaks.
  • Ignore keyboard handling on form screens.
  • Leave console.log statements in production code.
  • Use any type anywhere. Define proper types for all data.
  • Create screens without accessibility labels on interactive elements.

NEXT STEPS:

After building:

  • "Run /qa to test all screens and flows end-to-end."
  • "Run /ux to audit accessibility and design consistency."
  • "Run /api-scaffold to generate the backend API this app consumes."
  • "Run /ship to add a new feature to the app."

SELF-EVOLUTION TELEMETRY


After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /react-native — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.78 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.61 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.56 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.56 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..55 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..49 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.197 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.164 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..131 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.127 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..124 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.638 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.539 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.349 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.248 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.176 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs

Frequently asked questions about react-native

What does the react-native skill do?

Builds a production-ready React Native mobile app from designs, screenshots, or descriptions using Expo, typed navigation, TanStack Query, and full screen implementations. Triggers: on: "react native app", "build a mobile app", "expo app", "cross-platform mobile app". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the react-native skill?

Run `npx @skills-hub-ai/cli install react-native` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/react-native/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does react-native work with?

react-native runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the react-native skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use react-native after installing it?

In Claude Code, type `/react-native` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the react-native skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.