CLAUDE.md — React Native + Expo
CLAUDE.md template for React Native Expo projects with file-based routing, NativeWind, and Zustand.
# CLAUDE.md ## Project Overview {{project_name}} — {{one-line description}} ## Tech Stack - Framework: React Native via Expo SDK 51+ - Language: TypeScript - Navigation: Expo Router (file-based) - Styling: NativeWind (Tailwind for RN) - State: Zustand - API: React Query (TanStack Query) - Auth: {{auth_provider}} ## Commands ```bash npx expo start # Dev server npx expo run:ios # iOS build npx expo run:android # Android build npm run test # Jest tests ``` ## Directory Structure ``` app/ # Expo Router file-based routes ├── (tabs)/ # Tab navigator group ├── (auth)/ # Auth flow screens └── _layout.tsx # Root layout components/ ├── ui/ # Reusable primitives └── {{domain}}/ # Feature components lib/ ├── api/ # API client + React Query hooks ├── stores/ # Zustand stores └── utils/ # Shared utilities ``` ## Conventions - Use Expo modules over bare RN when available - NativeWind className for all styling (no StyleSheet) - Platform-specific code: .ios.tsx / .android.tsx suffixes - Always test on both iOS and Android - Use expo-secure-store for sensitive data, never AsyncStorage - Screens are thin — business logic lives in hooks/stores
Variables to customize
Why this prompt works
Mobile projects have platform-specific gotchas that generic AI code misses. Specifying 'NativeWind, not StyleSheet' and 'expo-secure-store, not AsyncStorage' catches the two most common RN mistakes.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Production CLAUDE.md template for Next.js App Router projects with TypeScript strict mode and Tailwind CSS.
CLAUDE.md — Python + FastAPI + SQLAlchemyCLAUDE.md template for async FastAPI projects with SQLAlchemy 2.0, Alembic migrations, and pytest.
CLAUDE.md — Go + Chi Router + PostgreSQLCLAUDE.md template for Go APIs using Chi, pgx, and idiomatic Go project structure.
CLAUDE.md — Django + DRF + CeleryCLAUDE.md template for Django REST Framework projects with Celery task queues and split settings.