Now In Code
Get access

Foldable Hydration Tracker Dashboard

A landscape app for a foldable screen: a sky-and-cloud home with a glass percentage bubble and weekly ring, a dark red history with two-month calendars, and a white garden shelf. Log, undo, edit and delete drinks. Shared HTML and React Native core.

Inspired by a design by @wickedmishra on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "foldable-hydration-tracker-dashboard" to this project.

The full source is attached at the end of this prompt. Put the files under components/foldable-hydration-tracker-dashboard/, 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 ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
23 Oct 2026
License
Unlimited commercial projects
Original design
@wickedmishra on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A water-tracking app laid out for a wide dual-screen device held in landscape, in four screens. The home screen has a large glass-like bubble showing the day's percentage and amount, a row of ring-shaped week indicators, a bottom panel of quantity and drink chips and a timeline of logged drinks with edit and delete pills. A history screen shows two month calendars with a progress arc on each day. A garden screen shows plants on glass shelves, and a seasonal promo card is included. Tapping a quantity or the plus button logs a drink, updating the bubble, stats, timeline and calendar arcs together.

How it's built

A shared JavaScript core holds the data, the state machine, the display list and hit testing, so the screen is a pure function of state. The React Native component draws that list with react-native-svg and bundled images, and handles touches by converting pointer positions back to design coordinates. Drink chips scroll horizontally with a clamped drag. There is no animation library. Caffeine and hydration values are derived from drink type with small multipliers. The layout is designed at 960 by 675 points and scaled to the requested width.

Good for

  • A hydration, nutrition or habit logger with a headline percentage
  • A tablet or foldable layout with a main column and a side action rail
  • Any app with a log, edit and undo flow that must update several views at once

Dependencies

react-native-svgreact-native

Tags

AvatarButtonCalendarCardChartCompanion and WellbeingGradientHealth and FitnessHome ScreenIconLight ModeLiquid GlassMedia PlayerMinimalMorphingNumeric DisplayPickerProductivity and HabitsProfile ScreenProgress BarSkeuomorphic 3DSpring PhysicsState TransitionSwipe GestureSystem UIToggle Switch

Related