Year Ruler Filtered Price List
Ten product cards show then-and-now prices with a multiplier badge. Dragging the year ruler fades out products launched earlier, a card pushes to a detail page where scrubbing years cross-fades price and model, and a price panel slides up. react-native-svg.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "year-ruler-filtered-price-list" to this project. The full source is attached at the end of this prompt. Put the files under components/year-ruler-filtered-price-list/, 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
- 25 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 light-mode list of ten product cards that show what everyday items cost in an earlier year against today, each with a multiplier badge and two tilted sticker images. A horizontal year ruler can be dragged to filter the list. Cards outside the chosen range shrink and fade, and the surviving cards slide up to close the gaps. Tapping a card pushes in a detail view with a phone drawing, and moving the year ruler there cross-fades the price and the phone model between eras. A "Behind the price" panel at the bottom can be dragged up to expand. The preview plays a ten-second demo by itself, and the first touch hands control to the user.
How it's built
A pure timeline function in a shared JavaScript file computes every frame from the demo time or from the current gesture state. Card text and prices come from a shared data file and render as ordinary views and Text. Sticker images are bundled cutout photos with a white edge. The phone bodies, brand marks, map and small icons are SVG markup generated in code and drawn through react-native-svg. A requestAnimationFrame loop drives time. A frozen-time prop gives stills and a width prop scales the canvas.
Good for
- A price, rate or history explorer where one range control filters a list
- A catalog screen that opens into a detail sheet with an expandable panel
- Editorial data stories that mix a ruler control with illustrated cards
Dependencies
react-native-svgexpo-linear-gradientreact-native