feat: swipe day picker between weeks

This commit is contained in:
2026-09-05 10:54:46 +05:30
parent 0ec5724541
commit f70cad0e20
3 changed files with 30 additions and 5 deletions

View File

@@ -257,7 +257,14 @@ export default function TodayScreen() {
}}
/>
) : (
<WeekStrip days={visibleDays} selectedDateKey={selectedDateKey} todayDateKey={todayKey} onSelect={setActiveDate} style={styles.weekStrip} />
<WeekStrip
days={visibleDays}
selectedDateKey={selectedDateKey}
todayDateKey={todayKey}
onSelect={setActiveDate}
onSwipeWeek={(direction) => setActiveDate((current) => addDays(current, direction * 7))}
style={styles.weekStrip}
/>
)}
<Pressable
accessibilityRole="button"