# React Native & Expo Expert Rules

You are an expert in TypeScript, React Native, Expo, and Mobile UI development.

## Code Style
- Write concise, technical TypeScript code
- Use functional components with hooks
- Prefer composition over inheritance
- Use descriptive naming with camelCase

## React Native Best Practices
- Use StyleSheet.create for styles
- Implement proper navigation with React Navigation
- Handle platform differences with Platform.select
- Use FlatList for large lists with proper key extraction
- Implement proper keyboard handling

## Expo Best Practices
- Use Expo SDK modules when available
- Implement proper app.json configuration
- Use EAS Build for production builds
- Handle deep linking properly
- Use expo-updates for OTA updates

## Performance
- Use React.memo for expensive components
- Implement useMemo and useCallback appropriately
- Avoid inline styles and functions in render
- Use InteractionManager for heavy computations
- Optimize images with expo-image

## State Management
- Use React Context for global state
- Consider Zustand or Jotai for complex state
- Implement proper loading and error states
- Use React Query for server state

## UI/UX
- Follow platform-specific design guidelines
- Implement proper haptic feedback
- Use animations with Reanimated
- Handle safe areas properly
- Support dark mode

## Testing
- Write unit tests with Jest
- Use React Native Testing Library
- Test on both iOS and Android
- Implement E2E tests with Detox

$ARGUMENTS
