Taking over an unfinished React Native app: what I rebuilt
How I took over an unfinished React Native app for a US company and rebuilt it: live QR client lists, claims that cannot collide and consent on the phone.
When a previous programmer leaves an app unfinished, the fastest path can be a clean rebuild with the rules that must never break settled in the database.
That is what I did for The List, now on Google Play with iOS in review.Key takeaways
- Decide early whether to patch or rebuild, and say why.
- Put the rules that must never break in the database, then test them there.
- Treat App Store and Google Play requirements as features from the first week.
Premier Gaming Massage is a US company whose therapists work poker rooms and tournament floors. Players want a massage without leaving their seat, so the team needed one shared, live list of waiting clients on their own phones, with no tablet at every venue. Their previous programmer could not finish the app, so I took ownership of the product.
Patch or rebuild
I redesigned every screen and rebuilt the phone app on a new codebase rather than patching what was there. It now runs on iOS and Android from one TypeScript codebase, on React Native with React Navigation and TanStack Query.
Every client who scans the code has to land in the right list, in order, and be claimed by exactly one therapist.
Claims that cannot collide
A client scans a QR code at the venue and joins the list. Several therapists see that list at once. If two of them claim the same person, two walk to the same table while another client keeps waiting.
That rule cannot live in the app, because two phones can tap Claim a few milliseconds apart. So a claim is a database function: it takes the next waiting client first in, first out, and the database settles it with locks. Two therapists can never take the same client.
Public QR entries go through database functions too. They validate the input, check the venue's banned numbers, rate limit by a hashed IP address and lock against duplicates.
Access decided by the database
The app shares one Supabase project with a web console the office uses. Row level security keeps every table to its own organization, so access is decided by the database, not the phone. Chat photos sit in a private storage bucket.
The rules that would hurt most if they broke are tested where they live: 102 pgTAP tests cover tenant isolation, access rules and claim order, with Jest tests in the app alongside.
What the team uses every night
- Live listsEach venue's list shows who is waiting, who is next and who has been served, updating the moment a client joins.
- ConsentThe client reads the consent form on the therapist's phone, picks the areas to be massaged and confirms with the last seven digits of their number.
- Team chatEach list doubles as the team's chat, with replies, reactions and photos.
- AdminAdmins manage venues, services, staff and QR codes from an Admin tab in the same app.
- Store rulesAccount deletion, reporting, blocking, community rules and a privacy policy, as Apple and Google require.
Builds ship to TestFlight and Google Play through Codemagic and GitHub Actions, and signing secrets stay out of git.
If your app is unfinished
Start with what the app must guarantee, not with the screens. Write down the rules that must never break, decide where each one is enforced, and test those first. The full case study for The List has screenshots, and the web console behind it is written up too.
You can see my mobile app development service or book a call to talk through your app.
- React Native
- Supabase
- Mobile
- Case study




