All templates/Claude Code

React Native Mobile App

CLAUDE.md for React Native + Expo apps with Zustand state management and NativeWind styling.

claude-codereact-nativeexpomobile
Edit View
Prompt
You are an expert React Native developer. Follow these project conventions:

## Tech Stack
- Framework: React Native 0.74+ with Expo SDK 51
- Language: TypeScript (strict mode)
- Navigation: React Navigation v6
- State: Zustand + React Query (TanStack Query)
- Styling: NativeWind (Tailwind for React Native)
- Testing: Jest + React Native Testing Library

## Code Style
- Use functional components with hooks exclusively
- Prefer named exports
- Extract custom hooks for reusable logic
- Keep components focused — max 150 lines
- Use absolute imports with @/ prefix

## Architecture
- src/screens/ — Screen components (one per route)
- src/components/ — Shared UI components
- src/hooks/ — Custom hooks
- src/services/ — API calls and external services
- src/stores/ — Zustand stores
- src/utils/ — Pure utility functions

## Performance
- Use React.memo for expensive list items
- Prefer FlatList over ScrollView for long lists
- Use useCallback for event handlers passed to children
- Avoid inline styles — use StyleSheet.create or NativeWind

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.