Jamaat Tracker: An Offline-First React Native App for Daily Prayers

A private, offline-first mobile app I built to track the five daily prayers, with a focus on praying in congregation. It keeps a personal record, shows streaks and statistics, fetches prayer times for your city and reminds you at prayer time. It has no account and no server: everything stays on the phone.

Open sourceReact Native
Illustration of the Jamaat Tracker (mobile) project
72
automated tests, all passing
6
phases, each a pull request with CI
2
languages, with right-to-left layout
0
accounts, servers or trackers
Jamaat Tracker Today screen with five prayers, their times and congregation status
Today: tap a prayer to cycle its status
Stats screen with streaks, a seven-day chart and summaries
Stats: streaks and a seven-day chart
Today screen in Urdu with right-to-left layout
Urdu with right-to-left layout
History calendar in dark mode
Dark mode: the month calendar

The challenge

I run a daily WhatsApp poll in a family group asking who prayed in congregation. It works as a reminder but leaves nothing for the individual: no personal record, no streak, no reminder at prayer time. I wanted a private version on my phone, and a real project to show that a full stack developer can ship mobile too.

The constraints made it interesting: no backend, so it has to work offline; free to build and run; and the rules that matter (what counts as today, what keeps a streak alive, when a reminder fires) have to be right across time zones, midnight and daylight saving.

How I approached it

  1. 01

    Logic first, screens second

    Dates, statuses, streaks, statistics and reminder planning are plain TypeScript with no React or Expo imports. They are unit-tested in milliseconds, including month and year ends, leap days and daylight-saving changes, run under four time zones.

  2. 02

    Real SQL in tests

    The data layer talks to SQLite through a small interface, so the same repository code runs on the phone (expo-sqlite) and in tests against a real in-memory SQLite. Migrations are versioned with PRAGMA user_version.

  3. 03

    Local calendar days, not timestamps

    A day is stored as the user's local calendar date. Storing UTC timestamps would put a late Isha on the wrong day near midnight. The Today screen rolls over by itself at local midnight and when the app returns to the foreground.

  4. 04

    Prayer times that survive being offline

    Times come from the free Aladhan API one month at a time and are cached by city, method and Asr school. If a download fails the app shows the last known times and says so. I checked the API first: the Asr time differs by 44 minutes between the Hanafi and Shafi schools in Karachi, so it is a visible setting, not a hidden default.

  5. 05

    Reminders on a rolling window

    A pure function plans the next seven days of reminders (optionally 5, 10 or 15 minutes early) with stable ids, and a thin wrapper replaces the scheduled notifications whenever the app opens, the settings change or the day changes.

  6. 06

    Urdu, right-to-left and dark mode

    A typed English and Urdu dictionary is tested for matching keys and placeholders. The right-to-left layout switches instantly through the root direction style, with no restart, and reminders are worded in the chosen language.

  7. 07

    Shipped in small, reviewed phases

    Six phases, each a branch and a pull request with a plan, tests and a CI run (format, lint, type-check, tests). A decisions log records why each choice was made.

Deliberate trade-offs

  • Reminders are best-effort local notifications. Android battery rules can delay them, so background reliability needs confirming on an installed build rather than in Expo Go.
  • Times use the phone's time zone. If the phone is in a different zone from the saved city they can be off until the city is changed.
  • The native tab bar does not reverse its order in Urdu; layouts and text do.

What I built

  • Planned the app in phases with a written scope, data model, risks and acceptance criteria before writing code.
  • Built the check-in screen, a month calendar with past-day editing, streaks, a seven-day chart and week and 30-day summaries.
  • Built the SQLite layer with migrations, a prayer-time cache and a typed settings store.
  • Wrote the Aladhan client with strict parsing and the reminder planner and scheduler.
  • Added English and Urdu with right-to-left layout, light and dark themes, accessibility labels and 48 dp touch targets.
  • Designed the app icon in code, set up CI, and built, signed and published an Android APK on GitHub Releases.
Download the signed Android APK from the GitHub release (screenshots show sample data from the release build in an emulator). Tested on a real Android phone in Expo Go; how reliably reminders fire after hours in the background or under battery saver is still being confirmed on real phones.

What this project demonstrates

  • Shipping a complete mobile app with React Native, Expo and TypeScript
  • Offline-first design with SQLite, migrations and caching
  • Local notifications, permissions and Android channels
  • Internationalisation with right-to-left layout and dark mode
  • Test-driven business logic and disciplined, documented delivery

Related case studies

Have a project like this in mind?

Tell me what you're building. I'll reply by email with questions or a suggested approach.