Habit Heatmap Tracker Home
A dark habit tracker home with an avatar date strip, search and two habit cards, each with three stats, a 13-week yellow heatmap and buttons. Tapping a square lights it with a spring bounce; Done checks in today and updates streak and percentage. Shared core.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "habit-heatmap-tracker-home" to this project. The full source is attached at the end of this prompt. Put the files under components/habit-heatmap-tracker-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 ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 27 Oct 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 dark habit-tracking home screen with an avatar and date at the top, three round action buttons, a search field, a heading with a count and a View All button. Two tall habit cards follow, one for walking and one for working time. Each card holds a yellow heatmap grid of small squares by week and day, with a few statistics and a Done button. Tapping a square lights it or dims it with a small spring bounce. Pressing Done checks in for today, raising the day count and the percentage in proportion. A bottom tab bar highlights the chosen tab, and buttons shrink slightly when pressed.
How it's built
A shared JavaScript core holds the layout in points and the grid data, and the component draws the cards, squares and icons with react-native-svg inside a ScrollView. Taps go through Pressable regions that update state, and the spring bounce on squares and the press scale on buttons run on a requestAnimationFrame loop. Icons come from an open-source set redrawn as vector paths, and a few extra icons and the avatar are bundled images. The tab bar is laid out for a real device and pinned to the bottom.
Good for
- A habit, streak or workout log where each day is a toggleable cell
- A contribution-style heatmap grid inside a card
- A home screen for any app that tracks daily check-ins
Dependencies
react-native-svgreact-native