expo

Expo

Specific best practices and architectural patterns when working with Expo.

Details

Language / Topic
typescriptTypeScript
Category
framework

Rules

balanced

Expo

- Use Expo Router for file-based routing — define routes in `app/` directory. Use `expo-*` packages over raw React Native APIs for cross-platform consistency. Use EAS Build for cloud builds and EAS Update for OTA updates.

Expo

- Use Expo Router for file-based routing — define routes in `app/` directory. Use `expo-*` packages over raw React Native APIs for cross-platform consistency. Use EAS Build for cloud builds and EAS Update for OTA updates.
- Use `expo-constants` and `expo-device` for runtime environment detection. Configure app variants with `app.config.ts` (dynamic config) for dev/staging/prod. Use `expo-image` over `Image` for better caching and performance. Use `expo-notifications` with proper permission handling. Use `expo-secure-store` for sensitive data.