React Native · Expo · TypeScript

React Native engineer.
I build mobile products alone, ship them to both stores, then operate them — and I write down what I got wrong.

ChallengeTies is the proof: designed, built, shipped and operated solo, live on the App Store and Google Play in 13 languages. Below are five things that were hard — including one I haven't fixed.

  • 35 releases v1.0 → v1.4.8, iOS + Android
  • 13 languages Including Arabic, RTL
  • 30 Cloud Functions All in europe-west1

Live in production

ChallengeTies — habits, with a partner

A habit app built for two: you run a challenge alongside a partner, and both sides have to show up. I own all of it — product, architecture, serverless backend, subscriptions, push, store releases and user support.

  • ChallengeTies onboarding screen: picking a challenge from an illustrated selection.
  • ChallengeTies commitment screen: the user writes their reason before starting a challenge.
  • ChallengeTies synchronized duo session: a timed window in which both partners have to check in.
  • Daily check-in in ChallengeTies: a 21-day challenge marked as done.
  • ChallengeTies weekly recap: momentum score, active days, trophies and best streak.

Stack

  • React Native 0.81 / Expo SDK 54
  • TypeScript
  • Firestore
  • Cloud Functions
  • RevenueCat
  • Expo push notifications
  • EAS Build · Submit · Update
  • Sentry
  • i18next

Scale

  • 6 live runtimes 39 OTA update groups on production
  • 304 tests Jest, green
  • ~6,000 keys Per locale, × 13
  • 55 screens Expo Router, 77 components

Five things that were hard

  1. 01

    Flipping layout direction on Android release builds

    Problem
    Arabic needs a native RTL flip, and the flip only lands once React Native's JS context has been recreated.
    Constraint
    In release builds, context recreation tears down the old context before the new one exists. It wedges intermittently, in both directions: the screen freezes on the last frame with no JS left to report it. A JS watchdog cannot supervise a restart that kills JS.
    Decision
    Release builds attempt no in-session restart at all. Native preferences are written first, then a localized "restart the app" message in all 13 locales. Dev builds keep the automatic restart.
    Result
    Arabic renders mirrored from the next cold start. The session you switch in stays unmirrored but readable — an accepted, written-down cost instead of a freeze one time in two.
  2. 02

    Making duo session state unforgeable without touching existing rules

    Problem
    A duo session is a timed window in which both partners have to check in. Its verdict drives rewards, so it is worth lying about.
    Constraint
    The parent chat document already grants full write access to both members. Storing the verdict there would let either partner write "my partner checked in."
    Decision
    The session lives in its own document with write: if false — Admin SDK only. Presence heartbeats stay client-written, because lying about presence validates nothing. No existing security rule changed.
    Result
    Drawing that line pushed the whole state machine into a pure module — no Firebase import, no I/O — which is why it carries 69 unit tests rather than mocks.
  3. 03

    Four concurrent writers on one document

    Problem
    After the first daily check-in, the UI bounced 1 → 0 → 1.
    Constraint
    Not a React state bug. Four client transactions — stats, trophies, quest, duo flag — plus a Cloud Function were committing to the same user document. Each concurrent commit broke the others' precondition; the retries succeeded, but the optimistic UI replayed its states on the way.
    Decision
    One serial queue for every client write to that document, off the critical UI path — with the rule that only leaf writes may be enqueued, since a queued job that enqueues would wait on the chain that is waiting on it.
    Result
    No client-to-client contention left. The Cloud Function can still lose a precondition; that now costs one silent retry inside the transaction instead of a visible bounce.
  4. 04

    An invite reward that has to pay exactly once

    Problem
    When an invited user completes their first day of a shared challenge, both partners get rewarded. It must never pay twice, and progress made before the invitation must not trigger it.
    Constraint
    The trigger fires on every write to a user document — thousands an hour, almost none of them relevant.
    Decision
    Three layers. A marker field gates the function so unrelated writes exit immediately. A baseline of completion keys, captured when the invitation is accepted, means only later completions count. The granted flag is read and written inside the same transaction as both reward writes.
    Result
    "Idempotent" and "not replayable" are handled separately, because they are different problems. Invitations accepted before the baseline existed fall back to the trigger's own guard rather than silently paying out.
  5. 05

    Known limits — and the fix I've designed

    Problem
    Two defects I know about and have not shipped a fix for.
    Constraint
    The streak day key is the UTC date, everywhere — check-ins, streaks, heatmap, cron jobs. At UTC−7 the day rolls at 5 pm local; at UTC+9 you cannot check in before 9 am. And the check-in is a Firestore transaction, so it requires the server: check in on a plane and the write is rejected on reconnect, so the optimistic UI rolls back. Transactionally correct, wrong for the product.
    Decision
    Designed, not shipped: an IANA timezone per user behind a frozen migration date, so historical keys stay UTC and only future ones are reinterpreted — plus a queue of check-ins keyed at the moment of the gesture, with the streak recomputed from the keys.
    Known hole
    The queue will not save a duo session. A check-in arriving after the window is refused by design, and a flush happens by definition after reconnect. The migration has to rule on that case explicitly, or it ships with a visible gap.

Method

How I work

  • 01

    Agent-assisted, every day

    I run Claude and Claude Code inside the daily loop: reading unfamiliar code, drafting migrations, and arguing against my own designs before they ship. It is how I work, not a tool I tried once. What survives the argument gets written down; what doesn't gets written down too.

  • 02

    A decision journal in the repo

    Every non-obvious call is dated and recorded next to the code: what was tried, what failed, what was rejected and why. The five case studies above are read straight out of it — including the ones where my first answer was wrong.

  • 03

    Tests where they pay

    304 Jest tests, green. The rule that makes them cheap: business logic lives in pure modules with no I/O and no Firebase import. The duo session state machine alone carries 69 of them, and none of those need a mock.

  • 04

    Ship, then operate

    EAS Build and Submit to both stores, EAS Update across 6 live runtime versions — 39 OTA groups on the production branch — and Sentry with source maps, so a stack trace from a user points at real source instead of a bundle offset.

Also building

Other projects

  • PixLogic

    In closed testing

    In closed testing on Google Play. Not yet released.

    A nonogram game. The board is a single Skia canvas — 900 individual views would die on a low-end Android. 2,130 puzzles across 71 packs, produced by a Node pipeline that rejects any puzzle a line solver cannot finish without guessing, so no published puzzle ever requires a guess. 417 tests across the workspace, 139 of them on the pure solver core.

    • Expo SDK 54
    • Skia
    • Reanimated 4
    • Zustand
    • MMKV
    • RevenueCat
    • AdMob
    pixlogicapp.netlify.app ↗
    • PixLogic board: a 15×15 nonogram in progress, rendered on a single Skia canvas.
    • PixLogic after solving: the hidden picture revealed, with the solve time.

Also shipped

  • UNC 66 — association website for a French veterans' union. React 19, Vite, Tailwind, Firebase. Delivered and live. unc66.com ↗

Contact

Hiring, or need a contractor? Write to me.

Email me maxime.cortes.dev@gmail.com Opens your mail app — or copies the address if none is set up

Open to senior React Native roles, and available for contract work. Full remote, CET.