How to Build a HIPAA-Compliant Healthcare App in React Native (2026)
I've spent the last few years watching healthcare startups ship apps that wouldn't survive a five-minute OCR audit: plaintext PHI in CloudWatch logs, Firebase pulling double duty as analytics and PHI database, and "we'll add a BAA later" as a roadmap item. So here's the actual developer checklist for shipping a HIPAA-compliant React Native + Expo app in 2026.
First, are you actually on the hook?
HIPAA applies if you are a Covered Entity (provider, plan, clearinghouse) or a Business Associate (vendor processing PHI on behalf of a CE). A consumer wellness app where users self-report data and you have no provider contracts is usually out of scope. The second a clinic signs up, you're in. Get this in writing from a lawyer before you build anything.
The 9 technical safeguards, in code terms
1. Encryption everywhere
- TLS 1.3 minimum on the wire. Pin certs with
react-native-ssl-pinning. - AES-256 at rest in the DB.
- On device:
react-native-keychainfor credentials,expo-secure-storefor tokens. Never AsyncStorage for PHI.
2. Unique auth + MFA
- One identity per human. No shared logins.
- MFA via TOTP or push (not SMS) for any account touching PHI.
3. RBAC, not "is_admin"
- Bake roles into your data model from migration #1. Retrofitting RBAC into a healthcare app is the worst kind of refactor.
4. Immutable audit logs
- Every PHI read, write, export, print. Append-only table or log stream. Six-year retention.
5. Auto logoff
- 15-minute inactivity timeout for providers, configurable per role.
6. Integrity controls
- Row-level audit trails or CDC. Be able to prove a chart wasn't tampered with.
7. Transmission security
- Push notifications: never put PHI in the body. The notification can say "New message," not "Lab result: positive."
8. Device controls
- MDM integration for shared/clinic devices. Remote wipe.
9. Risk analysis
- A document. Annual. OCR audits start here. NIST SP 800-66 is the template.
The stack that actually has BAAs
The single biggest compliance lever is vendor selection. Every component touching PHI needs a BAA.
| Layer | What works | What to avoid |
|---|---|---|
| Cloud | AWS, GCP, Azure | Anything that won't sign a BAA |
| DB | RDS, Supabase Team+, Aiven | Firebase Firestore (no BAA) |
| Auth | Cognito, Auth0 Enterprise, Stytch | Free tiers |
| Analytics | Heap, Amplitude Enterprise, self-hosted PostHog | Google Analytics, Firebase Analytics |
| Error monitoring | Sentry Business+ | Free Sentry |
| AI | Anthropic (BAA), Bedrock, Azure OpenAI | OpenAI free/standard |
| Paubox, AWS SES + BAA | Mailchimp, SendGrid free | |
| Video | Daily.co, Twilio Video, Zoom Healthcare | Vanilla Zoom |
If a vendor won't sign a BAA, they don't see PHI. Maintain two analytics streams: a PHI-free one for general behavior and a fully BAA-covered one for anything PHI-adjacent.
React Native specifics
- Use EAS Update for OTA security patches — critical for incident response when the App Store review queue is 3 days deep.
-
react-native-encrypted-storagefor any local PHI cache. - Scrub PHI from Sentry breadcrumbs with
beforeSend. - Disable screenshots on PHI screens via
react-native-prevent-screenshotorFLAG_SECUREon Android. - Biometric unlock for patient apps is fine; providers should re-auth more aggressively.
Where AI app builders fit (and don't)
The patient-facing UI — onboarding, intake forms, appointment screens, messaging — has zero compliance value on its own. It's pixels. The compliance value lives in the backend (where PHI is stored, accessed, audited).
So a sane workflow:
- Generate the React Native UI fast with a tool like RapidNative (exportable Expo code).
- Wire it to your own BAA-covered backend (RDS + Cognito + KMS + audit logging).
- The builder never sees PHI; you own the deployed code and the data layer.
This is the same logical split as using Figma for design or Storybook for components.
A realistic timeline
- Weeks 0–2: legal scoping, BAAs, initial risk analysis
- Weeks 2–4: backend architecture with RBAC + audit logging from day one
- Weeks 4–12: feature build (this is where AI builders compress UI work the most)
- Weeks 12–16: penetration test, training, BAA paperwork with launch customers
- Ongoing: quarterly access reviews, annual risk analysis, incident response drills
Budget for an MVP: $70k–$250k all-in, with 15–25% compliance overhead vs. a comparable non-HIPAA app.
TL;DR
- Confirm you're actually in scope.
- BAAs before code.
- RBAC and audit logging from migration #1.
- Encrypt in transit (TLS 1.3) and at rest (AES-256). No PHI in logs.
- Two analytics streams: PHI-free and BAA-covered.
- Use AI builders for UI scaffolding (no compliance value), hand-build the backend (all the compliance value).
- Annual risk analysis. Document everything.
What's your stack looking like? Drop a comment with what you're building — especially curious how others are handling the analytics split and PHI scrubbing in Sentry.
Top comments (0)