Skip to content

Instantly share code, notes, and snippets.

@channprj
Forked from EvanBacon/CLAUDE.md
Created July 22, 2025 17:23
Show Gist options
  • Save channprj/1e63a07f90de6cfa564ce63e5d5e4e0f to your computer and use it in GitHub Desktop.
Save channprj/1e63a07f90de6cfa564ce63e5d5e4e0f to your computer and use it in GitHub Desktop.
Expo Router CLAUDE.md file.

Architecture

  • Website: Expo Router website with Tailwind.
  • Native app: Expo Router app with CNG.
  • Backend: Expo API routes WinterTC-compliant. Routes are in src/app/api/ directory. API routes use +api.ts suffix (chat+api.ts).
  • Secrets: Use .env files and API routes for secret management. Never use EXPO_PUBLIC_ prefix for sensitive data.

Code Style

  • Use TypeScript whenever possible.
  • Use kebab-case for all file names. Avoid capital letters.
  • Use @/ path aliases for imports.
  • Use root src directory.

CLI

  • Install packages: npx expo install
  • Ensure the rules of React are enforced: npx expo lint
  • Create native modules: npx create-expo-module --local
  • Deploy iOS: npx testflight
  • Deploy Android: eas build -p android -s
  • Deploy web and server: npx expo export -p web && eas deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment