- Install deps:
bun install - Lint:
bun lint(eslint . --ext .js) - Start Metro:
bun start - iOS:
bun ios(runsreact-native run-ios) - Android:
bun android - Pods:
bun pods(pod-install ios)
- Naming: snake_case for MobX properties (is_loading), camelCase for methods/functions
- Formatting: Prettier: singleQuote: true, trailingComma: 'all', arrowParens: 'avoid', bracketSpacing: false, bracketSameLine: true
- Linting: ESLint extends
@react-native(see .eslintrc.js) - JS/JSX: camelCase vars/functions, PascalCase components
- Imports: Relative paths; group React/MobX first, then local
- MobX: Use
observer,action,makeObservable; stores instores/ - Error Handling: try/catch in async; MobX
runInAction - No TS: Plain JS with jsconfig.json (experimentalDecorators: true)
- Conventions: Mimic existing: hooks in components/, utils/ helpers
- Run
bun lint --fixafter edits
- State: MobX State Tree stores in
src/stores/ - Navigation: React Navigation v7 with stack/bottom tabs
- API: Fetch-based services in
src/api/ - Components: Feature-organized in
src/screens/, reusable insrc/components/
- Use
buncommands instead ofyarnwhen available - Follow snake_case convention for state properties
- Use @observer decorators for reactive components
- Prefer async/await/yield over promises for API calls
src/screens/- Screen components organized by featuresrc/components/- Reusable UI components (cells, headers, sheets, etc.)src/stores/- MobX State Tree stores and modelssrc/api/- API service classessrc/utils/- Utility functions