Mobile apps · Expo
Habit tracker

What you get
A single-screen habit tracker: today's progress, a week strip to look back at any of the last seven days, habit rows with streaks and a mini history, and a form to add habits with an icon. Data persists with AsyncStorage (device storage on phones, localStorage on the web).
Files, exactly as copied.
Exactly what is copied into a new project: 14 files, nothing generated.
Explorer 14
import { Pressable, StyleSheet, Text, View } from "react-native";import { Ionicons } from "@expo/vector-icons";import { dayKey, lastSevenDays, streak, type Habit } from "../habits";import { colors, radius, space } from "../theme"; /** One habit: tap the circle to check it off for the selected day, long-press the row to delete it. */export function HabitRow({ habit, day, onToggle, onRemove }: { habit: Habit; day: string; onToggle: () => void; onRemove: () => void }) { const done = habit.done.includes(day); const days = streak(habit); return ( <Pressable onLongPress={onRemove} accessibilityHint="Long-press to delete this habit" style={styles.card}> <View style={styles.icon}> <Ionicons name={habit.icon} size={20} color={colors.accent} /> </View> <View style={styles.body}> <Text style={styles.name} numberOfLines={1}> {habit.name} </Text> <View style={styles.meta}> <View style={styles.week} accessibilityElementsHidden importantForAccessibility="no-hide-descendants"> {lastSevenDays().map((d) => ( <View key={d.toISOString()} style={[styles.cell, habit.done.includes(dayKey(d)) && styles.cellOn]} /> ))} </View> <Text style={styles.streak}>{days > 0 ? `${days}-day streak` : habit.goal}</Text> </View> </View> <Pressable onPress={onToggle} accessibilityRole="checkbox" accessibilityState={{ checked: done }} accessibilityLabel={`Mark ${habit.name} as done`} hitSlop={8} style={({ pressed }) => [styles.check, done && styles.checkOn, pressed && { transform: [{ scale: 0.92 }] }]} > {done ? <Ionicons name="checkmark" size={20} color="#ffffff" /> : null} </Pressable> </Pressable> );} const styles = StyleSheet.create({ card: { flexDirection: "row", alignItems: "center", gap: space.md, backgroundColor: colors.surface, borderRadius: radius.md, padding: space.md, borderWidth: StyleSheet.hairlineWidth, borderColor: colors.border }, icon: { width: 42, height: 42, borderRadius: radius.sm, backgroundColor: colors.accentSoft, alignItems: "center", justifyContent: "center" }, body: { flex: 1, gap: 6 }, name: { fontSize: 16, fontWeight: "600", color: colors.text }, meta: { flexDirection: "row", alignItems: "center", gap: space.sm }, week: { flexDirection: "row", gap: 3 }, cell: { width: 8, height: 8, borderRadius: 2, backgroundColor: colors.border }, cellOn: { backgroundColor: colors.accent }, streak: { fontSize: 12, color: colors.muted, fontWeight: "500" }, check: { width: 36, height: 36, borderRadius: 18, borderWidth: 2, borderColor: colors.border, alignItems: "center", justifyContent: "center" }, checkOn: { backgroundColor: colors.accent, borderColor: colors.accent },});Remix
Remix this template.
Describe what to change and the agent starts from Habit tracker's files. The box is already started for you: finish “Start from Habit tracker and …”
Dependencies
Documented from the template's package.json. The runtime has a prebuilt dependency set for Expo · React Native, so installs are fast.
- expo~58.0.23
- react19.3.0
- react-native0.88.1
- react-native-web~0.21.4
- react-native-safe-area-context~5.11.1
- @expo/vector-icons^15.0.2
- @react-native-async-storage/async-storage2.2.0
- typescript~6.0.3
How it runs
- Framework
- Expo · React Native
- Dev command
- npm run dev
- Build command
- npm run build
- Output directory
- dist
- Port
- 8081
- Entry route
- /
Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.
Keep browsing.
All templates
Grocery delivery app
A delivery app home screen with search, categories, a product grid, a live cart and a checkout summary.

Mobile app starter
A blank Expo app with three tabs, safe-area handling and a small theme file, ready for your first screen.

Notes
A notes app with search, pinning and a full-screen editor that saves as you type.
Build on Habit tracker
Create a free account, start from this template, and ask the AI agent to turn it into your app.