feat: shared components, hooks, and audio engine
Components: - StyledText: unified text component replacing 5 local copies - GlassCard: reusable glassmorphic card with blur background - VideoPlayer: expo-video wrapper with preview/background modes and gradient fallback when no video URL Hooks: - useTimer: extracted timer engine with phase transitions (PREP → WORK → REST → repeat → COMPLETE), calorie tracking, and actions (start, pause, resume, skip, stop) - useHaptics: centralized haptic feedback respecting user settings - useAudio: expo-av sound effects (countdown beep, phase ding, completion chime) respecting soundEffects setting Audio assets: 3 generated WAV files for timer events. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
BIN
assets/audio/phase-start.wav
Normal file
BIN
assets/audio/phase-start.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user