IntermediateMobileFree prompt

React Native App Architecture with Navigation and Global State

Complete project structure for a React Native app with React Navigation, global state management, and code organization.

Define the base architecture for a React Native app that is scalable, testable, and supports parallel development by multiple developers.

At a glance

Access

Free prompt

Open to copy without upgrading.

Prompt objective

Define the base architecture for a React Native app that is scalable, testable, and supports parallel development by multiple developers.

Real use case

A fitness startup called FitTrack is building a workout tracking app. The mobile team has 3 developers who have never worked together on React Native before. They need a solid architecture before writing code to avoid rework.

Customize these fields first

EXPO/NATIVEAPP NAMECATEGORYTARGET AUDIENCEFEATURE 1FEATURE 2FEATURE 3FEATURE 4

Replace the placeholders with your own context before you run the prompt. That usually improves the first output more than adding more instructions later.

Prompt

Design a complete architecture for a [EXPO/NATIVE] React Native app for [APP NAME], a [CATEGORY] application targeting [TARGET AUDIENCE].\\\\\\\\n\\\\\\\\n**Core Features:**\\\\\\\\n- [FEATURE 1]\\\\\\\\n- [FEATURE 2]\\\\\\\\n- [FEATURE 3]\\\\\\\\n- [FEATURE 4]\\\\\\\\n- [FEATURE 5]\\\\\\\\n\\\\\\\\n**1) Folder Structure:**\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\nsrc/\\\\\\\\n├── app/              # Screens organized by feature\\\\\\\\n├── components/       # Reusable components\\\\\\\\n├── hooks/            # Custom hooks\\\\\\\\n├── services/         # API calls, storage, analytics\\\\\\\\n├── stores/           # Global state (Zustand)\\\\\\\\n├── navigation/       # Stack, Tab, Drawer navigators\\\\\\\\n├── theme/            # Design tokens (colors, typography, spacing)\\\\\\\\n├── utils/            # Helpers, formatters, validators\\\\\\\\n├── types/            # Global TypeScript types/interfaces\\\\\\\\n└── constants/        # Configurations, endpoints, feature flags\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\\\\\\\\\\\\\\\\`\\\\\\\\n\\\\\\\\n**2) Navigation (React Navigation 7):**\\\\\\\\n- Stack Navigator: auth flows (login, signup, forgot password)\\\\\\\\n- Bottom Tab Navigator: main screens (home, search, profile, etc.)\\\\\\\\n- Drawer Navigator (if applicable): side menu\\\\\\\\n- Deep linking configuration (universal URLs)\\\\\\\\n- Route protection for authenticated pages (redirect to login)\\\\\\\\n- Strong typing for route params\\\\\\\\n- Custom screen transitions\\\\\\\\n\\\\\\\\n**3) Global State (Zustand + React Query):**\\\\\\\\n- \\\\\\\\\\\\\\\\\\\\\\\`useAuthStore\\\\\\\\\\\\\\\\\\\\\\\`: token, user, isAuthenticated, login(), logout()\\\\\\\\n- \\\\\\\\\\\\\\\\\\\\\\\`useAppStore\\\\\\\\\\\\\\\\\\\\\\\`: theme, language, onboarding completed\\\\\\\\n- React Query for server state (queries, mutations, prefetch)\\\\\\\\n- Persistence with MMKV (faster than AsyncStorage)\\\\\\\\n- Full typing for each store\\\\\\\\n\\\\\\\\n**4) Service Layer:**\\\\\\\\n- API client (Axios) with interceptors (auth token, refresh, error handling)\\\\\\\\n- Request/response typing for each endpoint\\\\\\\\n- Standardized error handling (toast, retry, offline queue)\\\\\\\\n- Analytics service (mixpanel/amplitude wrapper)\\\\\\\\n- Storage service (MMKV abstraction)\\\\\\\\n\\\\\\\\n**5) Code Standards:**\\\\\\\\n- ESLint + Prettier config for React Native\\\\\\\\n- Commit conventions (conventional commits)\\\\\\\\n- Component pattern: Container (logic) + Presentation (UI)\\\\\\\\n- Custom hooks for reusable logic\\\\\\\\n- Testing: Jest + React Native Testing Library\\\\\\\\n\\\\\\\\n**6) Performance:**\\\\\\\\n- FlashList instead of FlatList for long lists\\\\\\\\n- Memoization with useMemo/useCallback (where it actually matters)\\\\\\\\n- Image caching with expo-image or react-native-fast-image\\\\\\\\n- Hermes engine enabled\\\\\\\\n- Bundle analysis and code splitting\\\\\\\\n\\\\\\\\nInclude TypeScript code for the most important components and hooks.

Open directly in an AI — the text is pre-filled:

How to use this prompt

  1. 1Replace the key placeholders first: EXPO/NATIVE, APP NAME, CATEGORY, TARGET AUDIENCE.
  2. 2Replace any bracketed placeholders like [this] with your own context.
  3. 3Add extra background information when you want more tailored results.
  4. 4Combine multiple prompts in one conversation when you need a richer output.
  5. 5Save your best-performing prompts so they are easy to reuse later.

Next best step

Open the guide first, then branch only if you still need more.

A guide for technical builders choosing between prompts, coding workflows, and agent-based implementation.

If this prompt is close but not quite right, generate variants next. If the job is recurring, move into the course library after the guide.

Related prompts

View all

Explore other prompt categories

Move sideways into adjacent libraries when the current category is not the full answer.

Free browsing stays open. Premium prompts unlock the reusable workflow layer.

Use the guides and role paths to validate the job first. Upgrade when you want the full prompt text, editable premium prompts, and the surrounding course paths in one place.

Free access

  • Browse guides, role paths, and category pages.
  • Preview prompts before you decide to upgrade.
  • Find the right starting point without friction.

Membership access

  • Unlock premium prompts and the full copy text.
  • See more workflow paths and course connections.
  • Keep the reusable templates in one place.
Chat on WhatsApp