HabitFlow is a modern, premium, and feature-rich habit-tracking application designed to help you build and maintain a better lifestyle. Built with React Native and Expo, it features a sleek dark-themed UI, smooth micro-animations, and powerful tracking capabilities.
- 📅 Flexible Tracking: Daily, weekly, or monthly goals for each habit.
- 🔥 Streak System: Visualize your progress with current and best streaks.
- 📱 Home Screen Widgets: Track your countdowns directly from your home screen (iOS & Android).
- ⏳ Event Countdowns: Create and track important life events with integrated notifications.
- 🎨 Dynamic App Icon: The app icon reflects your streak status, providing a visual cue for your consistency.
- 📊 Detailed Insights:
- Calendar Heatmaps: Visualize your consistency over time.
- Circular Progress: Quick overview of your daily goal completion.
- Progress Stats: Track total completions, skips, and scores.
- 🔔 Smart Reminders: Customizable local notifications for both habits and countdowns.
- 📂 Organization:
- Categories: Group habits (Health, Productivity, Mindfulness, etc.).
- Archiving: Keep your list clean by archiving old habits.
- Reordering: Drag and drop habits to prioritize your day.
- 📝 Notes: Attach daily notes to your habits for extra context.
- 💾 Data Independence: Export and import your data anytime (CSV/JSON).
- Framework: Expo (SDK 54)
- UI Library: React Native
- Navigation: Expo Router
- Widgets: expo-widgets (Native iOS/Android widgets)
- State Management: Zustand (Persistent store)
- Storage: @react-native-async-storage/async-storage
- Styling: Expo Linear Gradient & Custom Design System
- Language: TypeScript
Habit-app/
├── app/ # Expo Router screens and layouts
│ ├── (tabs)/ # Main tab navigation (Index, Stats, Settings)
│ ├── _layout.tsx # Root configuration and providers
│ ├── add-habit.tsx # Habit creation logic
│ └── add-countdown.tsx # Event countdown creation
├── src/
│ ├── components/ # Reusable UI components (Heatmap, Progress, etc.)
│ ├── store/ # Zustand store (habitStore.ts)
│ ├── utils/ # Business logic, date helpers, and stats
│ ├── hooks/ # Custom React hooks
│ ├── constants/ # Theme, colors, and layout constants
│ └── services/ # Notification, WidgetSync, and AppIcon services
├── widgets/ # Native Widget source code (expo-widgets)
└── assets/ # App icons, splash screen, and screenshots- Node.js (v18 or later)
- npm or yarn
- Expo Go app on your mobile device (for testing core features)
- Note: Widgets and Dynamic App Icons require a Development Build.
-
Clone the repository:
git clone https://github.com/yourusername/HabitFlow.git cd HabitFlow -
Install dependencies:
npm install
-
Start the development server:
npx expo start
-
Scan the QR code: Open the Expo Go app on your phone and scan the code shown in your terminal.
This project uses EAS Build for generating production binaries.
# Install EAS CLI
npm install -g eas-cli
# Login to your Expo account
eas login
# Build for Android
eas build --platform android --profile production
# Build for iOS
eas build --platform ios --profile productionDistributed under the MIT License. See LICENSE for more information.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Developed with ❤️ by Victor Marshall