Medication Reminder Countdown Screens
An auto-playing loop cross-fades through a dose countdown home with a tick arc that lights up, a grid of vials, a dose calendar and a streak page with rolling numbers; a tap ring marks each switch. HTML and react-native-svg render one shared display list.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "medication-reminder-countdown-screens" to this project. The full source is attached at the end of this prompt. Put the files under components/medication-reminder-countdown-screens/, 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
- 21 Sep 2026
- License
- Unlimited commercial projects
- Original design
- 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 scripted walkthrough of a dose-reminder app on a dark phone frame, looping every fourteen seconds or so. The home screen has a deep green card with a countdown to the next dose, a ring of radial tick marks that light up from the center outward, a glowing capsule marker, a medication pill with dose size and a segmented supply bar that fills cell by cell. The sequence cross-fades to a medication list, then a dose calendar, back to the list and home, and finally a streak and achievements screen. White tap rings mark each press, and a frozen-time option can show any moment.
How it's built
One shared JavaScript module takes a time value and returns a display list of groups, boxes, text, glows and inline SVG icons. The React Native component maps that list onto views and react-native-svg with a mechanical renderer, driven by a requestAnimationFrame clock. Icons are drawn as inline SVG strings through SvgXml, so there are no bitmaps. Screen changes are short cross-fades and the tick ring uses staggered lighting. The folder also holds older build scripts, backups and a Playwright probe that are not part of the runtime component.
Good for
- A walkthrough or marketing reel of a health or reminder app
- A countdown card with a ring of ticks for the next scheduled event
- A reference for driving a whole multi-screen demo from one time function
Dependencies
react-native-svgreact-native