<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hasibul Hasan</title>
    <description>The latest articles on DEV Community by Hasibul Hasan (@hasibul_hasan_dc49862fa65).</description>
    <link>https://dev.to/hasibul_hasan_dc49862fa65</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3827696%2F700847e5-8dfe-4b25-b2c1-b55dd70002cc.png</url>
      <title>DEV Community: Hasibul Hasan</title>
      <link>https://dev.to/hasibul_hasan_dc49862fa65</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hasibul_hasan_dc49862fa65"/>
    <language>en</language>
    <item>
      <title>How I Built an AI-Powered Habit Tracker with React Native &amp; Gemini</title>
      <dc:creator>Hasibul Hasan</dc:creator>
      <pubDate>Mon, 16 Mar 2026 16:34:44 +0000</pubDate>
      <link>https://dev.to/hasibul_hasan_dc49862fa65/how-i-built-an-ai-powered-habit-tracker-with-react-native-gemini-18hd</link>
      <guid>https://dev.to/hasibul_hasan_dc49862fa65/how-i-built-an-ai-powered-habit-tracker-with-react-native-gemini-18hd</guid>
      <description>&lt;p&gt;I'm a solo developer from Bangladesh, and I just shipped HabitFlow — a habit tracker with an AI coach built on Google's Gemini.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I kept losing long streaks when I got sick or busy. Every habit app I tried treated a missed day as failure. So I built one with &lt;strong&gt;streak freezes&lt;/strong&gt; — your streak stays alive on off days.&lt;/p&gt;

&lt;p&gt;Then I thought: what if the app could actually coach you? So I added an &lt;strong&gt;AI Habit Coach&lt;/strong&gt; powered by Gemini that analyzes your real completion data and gives personalized advice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React Native&lt;/strong&gt; + &lt;strong&gt;Expo&lt;/strong&gt; (managed workflow)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Firebase&lt;/strong&gt; — Auth, Firestore, Analytics&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Gemini Flash&lt;/strong&gt; — AI coaching&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RevenueCat&lt;/strong&gt; — subscriptions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zustand&lt;/strong&gt; — state management with offline-first persistence&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Daily/weekly habit tracking with streaks&lt;/li&gt;
&lt;li&gt;Multi-count habits (e.g., "Drink water 8x" with tap-to-increment)&lt;/li&gt;
&lt;li&gt;AI Coach that knows your actual habit data&lt;/li&gt;
&lt;li&gt;Time-bound challenges (7-90 days)&lt;/li&gt;
&lt;li&gt;Focus timer (Pomodoro) linked to habits&lt;/li&gt;
&lt;li&gt;Calendar heatmap &amp;amp; analytics&lt;/li&gt;
&lt;li&gt;Streak freezes&lt;/li&gt;
&lt;li&gt;Decline alerts when consistency drops&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Challenges I Faced
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Firebase JS SDK doesn't support Analytics on React Native — had to use the native &lt;code&gt;@react-native-firebase/app&lt;/code&gt; SDK&lt;/li&gt;
&lt;li&gt;Gemini's Firebase AI SDK uses &lt;code&gt;DOMException&lt;/code&gt; which doesn't exist in React Native — switched to REST API&lt;/li&gt;
&lt;li&gt;Syncing local-first Zustand stores with Firestore real-time listeners without infinite loops&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.hasib.habitflow" rel="noopener noreferrer"&gt;https://play.google.com/store/apps/details?id=com.hasib.habitflow&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback from the dev community. What would you add next?&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>android</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
