Files
mobile-darmasaba/docs/CONVENTIONS.md
amaliadwiy 6ffe599ad0 docs: pecah CLAUDE.md jadi file terpisah di docs/
Pindahkan konten architecture dan conventions ke docs/ARCHITECTURE.md
dan docs/CONVENTIONS.md, lalu referensikan via @path di CLAUDE.md
agar file tetap ramping.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 11:19:49 +08:00

1010 B

Key Conventions

Imports: Use @/ alias (maps to project root, configured in tsconfig.json). Never use relative paths like ../../.

Utility functions: Prefixed with fun_ (e.g., lib/fun_stringToDate.ts, lib/fun_validateName.ts).

Styling: Use theme-aware colors from useTheme() hook. Global StyleSheet definitions live in constants/Styles.ts. Color tokens are in constants/Colors.ts with explicit light/dark variants.

Component structure: Feature-specific subdirectories under components/ (e.g., components/announcement/) typically contain a header component alongside list/card components for that feature.

Environment config: All env vars are declared in .env, exposed through app.config.js extra field, and accessed via Constants.expoConfig.extra.* or the constants/ConstEnv.ts wrapper.

EAS builds: Profiles are development, preview, and production in eas.json. Production builds auto-increment the app version via the bump script.