Now In Code
Get access

Health Vitals Card Carousel Home

Under a light greeting and a health score card, vitals cards swipe, snap and loop while side cards shrink and the page indicator stretches between dots; blood pressure bars rise one by one. A pill tab bar slides its selected circle on a spring.

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

Agent prompt

Add the Now In Code component "health-vitals-card-carousel-home" to this project.

The full source is attached at the end of this prompt. Put the files under components/health-vitals-card-carousel-home/, 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
20 Nov 2026
License
Unlimited commercial projects
Original design
@uifoysal 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 healthcare app home screen on a warm light gray background. The top shows a round avatar, a white bell button with a red dot, a date and a very light large greeting. A white pill card summarizes a health score and the number of care plans, with a lilac plus button. Under a Today's vitals heading and four pagination markers sits a horizontal carousel of rounded vital cards. The centered one is lilac with a blood pressure reading and a row of thirty rounded bars, the last six in black, and the neighbors peek in as white cards. Dragging snaps and loops through four cards, side cards shrink and sit slightly lower, and the pagination bar flows between markers. A tab bar with a black selection disc and a bright round video-call button sit at the bottom.

How it's built

A shared core exposes a pure function that turns the current state into a display list of rects, text, SVG shapes and images, plus a step function that advances the carousel position and the tab selection with a semi-implicit spring. The component maps that list onto views, Text, Images and react-native-svg, and a PanResponder takes over once the drag passes a few points horizontally. A requestAnimationFrame loop runs only while something is moving. Cards wrap around by offset, and a release picks the target card by projected velocity, one card at a time at most.

Good for

  • A health, fitness or medical app home with a swipeable row of metrics
  • Any dashboard whose cards loop in a carousel with a tab bar below
  • Summary screens that combine a greeting, a score card and live-looking charts

Dependencies

react-native-svgreact-native

Tags

CardCarouselChartData FillHealth and FitnessHome ScreenLight ModeSoft and CalmSpring PhysicsSwipe GestureTab Bar

Related