iOS and Android shopping apps for a pharmacy chain
- Result
- Go to Checkout went from 20 s to 3 s and the homepage from 7.7 s to 3.7 s, measured by QA.
- My role
- Lead React Native Developer
- Team
- 7 developers
- Platforms
- Mobile
Client name left out
A faster checkout and homepage for a pharmacy chain that sells through its iOS and Android apps. I joined a three-year-old React Native app as the lead, stabilised it and rebuilt checkout around courier delivery, scheduled slots and pharmacy or locker pickup. Releases no longer depend on one developer's laptop.
The problem
The apps sell medicines and health products and share their Magento 2 back end with the web shop. The chain needed a new checkout with courier delivery, scheduled slots and pickup points, parity with the web shop, a faster app, and releases that did not depend on one developer's laptop.
What we built
- A complete pharmacy shop on the phone: catalogue, brands, filters and search, product pages with promo and free-delivery badges, wishlist and a profile with phone verification.
- Checkout with four ways to receive an order: courier delivery through two delivery partners, scheduled slots, pickup from a pharmacy or a parcel locker — with a map, distance-based pricing, free-delivery rules and per-pharmacy stock coverage.
- Payments: new and saved cards through a 3-D Secure WebView, Apple Pay and Google Pay, instalments, promo codes and loyalty points, with the order verified on the back end before the app shows success.
- Loyalty: loyalty and family cards with barcodes, tiered loyalty and a refer-a-friend programme with invite deep links.
- Sign-in by phone code, Google, Apple or Facebook, and a guest mode.
- Control without a release: update popups driven by Remote Config, feature flags per environment, three languages.
- Delivery pipeline: GitHub Actions with Fastlane — staging builds go to TestFlight and Play Internal, main uploads store drafts for both platforms.
My part
- Led the mobile app: came in as the lead on the three-year-old codebase, stabilised it, redesigned the architecture and wrote the engineering audit of the team for management. Hired the developer who now builds the app day to day, and stay on as the person who answers for releases: client calls, priorities, review of what goes to the stores.
- Rebuilt checkout, the hardest part: delivery methods, pharmacies, stock coverage, slots and payment methods all depend on each other. I split one large context into per-slice contexts, auto-pick the first pharmacy that covers the whole cart and keep it on retries, block slots behind the 30-minute cut-off, lock place-order across the submit chain, and restore the cart after a failed saved-card payment instead of stranding funds.
- Moved the app from REST to GraphQL and overhauled cold start: initialisation in critical and deferred waves, parsed CMS content cached instead of 3 MB of raw HTML, stale-while-revalidate for customer data.
- Took checkout latency to the back end: thinned the cart mutations so Magento stops recomputing the whole quote on every step and removed the request cascade on quantity changes — the Go to Checkout step went from 20 s to 3 s.
- Ran a measured performance pass: source-map analysis of the production bundle, dead dependencies dropped, flags from SVG to PNG — and an honest write-up that bundle size did not move startup time.
- Hardened and cleaned the code: a global error screen, Sentry with navigation context and native crash symbolication. A typing pass found real wire-format bugs, such as saved-card deletion silently failing.
- Built CI/CD from nothing: GitHub Actions and Fastlane for both platforms, environment switching through GitHub Environments.
Result
- Go to Checkout went from 20 s to 3 s and selecting a pickup locker from 7 s to 1 s, measured by QA on a real iPhone.
- Homepage full load went from 7.7 s to 3.7 s and time to interactive from 4.3 s to 3.0 s.
- The final build was the fastest in all nine measured checkout operations; switching between delivery and pickup went from 3.2 s to 1.2 s.
- The JS bundle got 9–9.5% smaller on iOS and Android.
- Every release since, including the new checkout, has gone to both stores through the pipeline.
Tech stack
- Mobile
- React Native 0.80 (New Architecture, Hermes)
- React 19
- TypeScript
- React Navigation 7
- React Native Paper
- Reanimated 4
- Gesture Handler
- Formik + Yup
- i18next (Georgian, English, Russian)
- Data
- Apollo Client 4
- Magento 2 GraphQL
- Persisted, versioned Apollo cache
- REST gateway
- Feature flags per environment
- AsyncStorage
- Checkout & payments
- Courier delivery via two delivery partners
- Scheduled slots
- Pharmacy and parcel-locker pickup
- Cards with 3-D Secure WebView
- Saved cards
- Apple Pay / Google Pay
- Instalments / BNPL
- Promo codes and loyalty points
- Maps & location
- react-native-maps (Google)
- Google Places autocomplete
- Geolocation
- Auth
- Phone verification
- Google Sign-In
- Apple Sign-In
- Facebook SDK
- JWT
- Engagement
- Firebase Cloud Messaging
- Notifee
- Firebase Remote Config
- Firebase Analytics
- Universal / App Links
- AI assistant widget (WebView)
- Quality & releases
- Sentry (dSYM upload, navigation context)
- Jest
- Husky + commitlint
- GitHub Actions
- Fastlane
- TestFlight and Play Internal tracks
Is your app slow? Let's find out where the time goes.
Pick a 30-minute slot and tell me which screens or steps feel slow, or send a few sentences by email.
Related work
- Healthcare / MedTech
Baby-led weaning app with recipes and a feeding tracker, built from zero
Live on the App Store and Google Play. I built it from zero, the subscriptions and the releases included, then led the team on top of it.
- Mobile
- Backend
- Subscriptions
- Performance
- CI/CD
- Healthcare / MedTech
Medical documents with on-device encryption
Published on the App Store and Google Play; the app has since been taken down from the stores.
- Mobile
- Security / encryption
- Offline
- Release / stores