Now In Code
Get access

Running Tracker with Milestone Ruler

A frosted ruler marks every 10 km and springs back to the current distance on release. Cards count distance, pace and time, a route draws itself, and a second screen adds an arc gauge and a map card that pans between regions.

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

Agent prompt

Add the Now In Code component "running-tracker-with-milestone-ruler" to this project.

The full source is attached at the end of this prompt. Put the files under components/running-tracker-with-milestone-ruler/, 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
22 Nov 2026
License
Unlimited commercial projects
Original design
@sujon_co 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 two-screen running tracker. The home screen has an avatar, a horizontal distance ruler with a Now label and a Next goal label 300 km ahead, a card for the latest run and two small stat cards above a tab bar. The ruler is draggable, its ticks near each label lengthen and change color, and the readout follows, then eases back on release. The records screen has a title, a search field, time filters, a blood-oxygen gauge, a speed card, a milestone map card and heart rate and calorie cards. Numbers count up, a run route draws itself, and the milestone card steps through four states: the map pans to a crosshair, a bubble blurs out and back in, and the digits roll.

How it's built

A core module holds the constants, timeline tables and the geometry for ruler, gauge and map, and a scene module turns them into display lists that alternate SVG layers with glass layers. The React Native component uses react-native-svg for drawing, expo-blur for the glass over the ruler, PanResponder for dragging and expo-google-fonts for the typeface. The map uses a Mercator projection at a fixed scale. The gauge and ruler are drawn by hand instead of using chart packages.

Good for

  • A fitness or running app with distance goals and past records
  • A draggable ruler to pick or preview a target value
  • A map card that jumps between achievements with a crosshair

Dependencies

@expo-google-fonts/urbanistexpo-blurreact-native-svgreact-native

Tags

CardChartDragHealth and FitnessLiquid GlassMapNumber RollPath DrawingProgress BarTab Bar

Related