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
- 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.
- 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 withPRAGMA user_version. - 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.
- 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.
- 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.
- 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
directionstyle, with no restart, and reminders are worded in the chosen language. - 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.
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





