Synced Week Strip with Snap Scrolling
A bottom date strip and the week dots on each habit card swipe horizontally in sync, with iOS-style momentum that snaps to whole days. A Today pill pops up to jump back, and scrolling the list up hides the toolbar while the date strip springs down.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "synced-week-strip-with-snap-scrolling" to this project. The full source is attached at the end of this prompt. Put the files under components/synced-week-strip-with-snap-scrolling/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 30 Sep 2026
- License
- Unlimited commercial projects
- Original design
- @dimagroshev on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A weekly habit view on a black screen. Each habit is a card with an icon, a title, a subtitle and a row of seven dots, one per day, showing done, missed, upcoming and streak states in colour. A strip of days at the bottom mirrors those columns. Dragging sideways moves the strip and every card's dot row together, with momentum, then snaps to a whole day. A Today pill fades in after the view moves away from today, and tapping it returns to the current day, dimming briefly. Scrolling the list vertically hides the toolbar and drops the strip down with a spring, while a frosted band appears behind the header. Completed cards use a flat black header and crossed-out titles.
How it's built
Horizontal scrolling is a single offset shared by the strip and all dot rows, with a deceleration modelled on the iOS scroll view rate and a snap to the nearest column. The vertical list has its own inertia, and the strip's drop uses a critically damped spring. Rendering uses react-native-svg and expo-blur, with no shader or gesture library. Column width is one seventh of the card width, and positions in points were measured from the source. A requestAnimationFrame loop supplies time. The web preview and the native component share one core.
Good for
- Habit trackers and calendars with a week view
- Dashboards where several rows must scroll horizontally in lock step
- Timelines that snap to days or other fixed steps
Dependencies
react-native-svgexpo-blurreact-native