Building iOS and Android Apps with Expo and React Native: A Practical Guide
How to build an iOS and Android app with Expo and React Native: when to choose it, setup, testing, builds, over-the-air updates, store submission and pitfalls.
Shipping a mobile app used to mean two codebases, two languages and two teams. Today, for a large share of products, you can build for iOS and Android from one TypeScript codebase and still end up with a real native app. The most practical way to do that is React Native with Expo.
I've worked with React Native, Ionic and native Objective-C and Java on blockchain apps (wallets and other tools that talk to node APIs), and I've just spent a lot of time building and shipping this website. This guide combines both: the technical path to a store-ready app, and the habits from day-to-day development that matter just as much as the framework choice.
Native, cross-platform or web app?
Start by being honest about what the app has to do. The decision is less about technology fashion and more about which constraints actually apply:
| Approach | Choose it when | Watch out for |
|---|---|---|
| Native (Swift/SwiftUI, Kotlin) | You need the newest platform APIs on day one, heavy graphics or very demanding performance, or a deeply platform-specific experience. | Two codebases, two skill sets, roughly double the maintenance. |
| React Native + Expo | Business, social, content, commerce, fintech, productivity apps; a web or React team; one team shipping both stores. | Rare native features may need custom native code; you depend on the ecosystem keeping up with new OS releases. |
| Web app / PWA | Content-first or tool-like products where store distribution isn't essential. | Limited access to some device features, especially on iOS, and no store presence by default. |
| Game engine (Unity, Godot) | Games and anything real-time 3D. | Not a good fit for form-heavy, list-heavy business apps. |
If your app is mostly screens, lists, forms, authentication, payments and a backend, React Native with Expo is usually the fastest route to a good result.
What Expo adds on top of React Native
React Native gives you the runtime: your JavaScript or TypeScript drives real native views. Expo is the toolchain and platform around it, and it removes most of the painful setup:
- Project scaffolding and a dev server that works on simulators and real phones.
- Expo Router, file-based navigation: the file tree under
app/becomes your screens, much like a Next.js project. - A library of native modules (camera, notifications, secure storage, file system, maps and more) that work on both platforms.
- Config plugins, so native configuration (permissions, URL schemes, entitlements) lives in a config file rather than in hand-edited Xcode and Gradle projects.
- EAS (Expo Application Services): cloud builds for iOS and Android, store submission, and over-the-air updates.
Recent React Native versions also use the New Architecture and the Hermes JavaScript engine by default, which improves startup time and the bridge between JavaScript and native code. You mostly benefit from this without touching it.
Step 1: Scaffold the project
npx create-expo-app@latest my-app
cd my-app
npx expo start
Press i for the iOS simulator (needs a Mac with Xcode) or a for an Android emulator (Android Studio), or scan the QR code with a phone. Edit a file and the app hot-reloads in seconds. Keep TypeScript on from the start; the type errors it catches in navigation params and API responses will save you far more time than it costs.
Step 2: Structure the app
- Navigation: use Expo Router. Put screens in
app/, shared UI incomponents/, and API and business logic in a separatelib/orservices/folder so screens stay thin. - Server data: use a data-fetching library such as TanStack Query for caching, retries and loading/error states. Hand-rolled
useEffectfetching becomes a bug farm quickly. - Local state: start with React state and context. Reach for a store only when you feel the pain.
- Forms and validation: validate with a schema library and share the schema with your backend where you can.
- Design system early: a small set of spacing, colour and text tokens, and a few base components (Button, Input, Screen), keeps the app consistent and makes dark mode and accessibility far easier.
Step 3: Develop on real devices, not just simulators
Simulators are great for fast iteration, but they hide real-world problems: slow networks, notch and gesture-bar layouts, keyboard behaviour, low-end Android phones, permissions prompts and background behaviour. Test on at least one real iPhone and one mid-range Android phone throughout development, not only at the end.
A practical note on Expo Go: it's a great sandbox for the start, but once you add libraries with custom native code you'll need a development build (your own app binary with the dev tools included). Switch to it early so you aren't surprised later.
Step 4: Keep secrets on the server
This is the mistake I see most often in mobile and web projects alike: putting an API key in the client. Anything you ship in an app bundle can be extracted. Environment variables that are inlined into the JavaScript bundle are public, not secret.
The fix is the same pattern I used for this site's contact form: the app calls your small backend endpoint, and the endpoint holds the key. On this site, the form posts to a serverless function, which calls the email provider with a key that never reaches the browser. For a mobile app that means authenticating users, calling your own API, and letting the server talk to third-party services (payments, email, AI models, databases). The app should hold at most short-lived user tokens, kept in secure storage (Keychain on iOS, Keystore on Android) rather than plain storage.
Step 5: Use native capabilities carefully
- Permissions: iOS requires a human-readable usage description for each sensitive permission (camera, location, photos). Ask in context, right when the feature is needed, and handle "denied" gracefully. Apps that demand everything on first launch get uninstalled.
- Push notifications: they go through Apple's APNs and Google's FCM. Expo's notifications library wraps both. Treat the notification permission as a feature of its own and don't spend it on launch.
- Deep links: configure URL schemes and universal/app links so web links open the right screen. They're also how password-reset and magic-link flows work.
- Native code when you must: if no library does what you need, write a native module (Swift/Objective-C and Kotlin/Java). That's where prior native experience pays off, and it's the main reason not to treat React Native as "no native knowledge needed".
Step 6: Test the real path
A lesson I keep re-learning: "I tested it" is not the same as "it works". While building this site, I verified the contact form's states in the browser, the API function with mocks, and the deployment with probes. But the server logs then showed that no real submission had ever reached production. The checks had passed, and the real path had not been exercised yet. Mobile has the same trap in a worse form, because the feedback loop (build, upload, review) is slower. So:
- Unit tests (Jest) for logic: formatting, validation, reducers, API clients.
- Component tests (React Native Testing Library) for behaviour: "when I tap Send with an empty field, I see the error".
- End-to-end tests on a simulator or emulator with a tool like Maestro or Detox, covering the few flows that must never break: sign-up, login, purchase, the core action.
- Real-device smoke tests before each release, with a written checklist.
- Check the other end. After a test submission, confirm in the backend logs that the request actually arrived and did what you expected.
Step 7: Performance and app size
- Long lists: use
FlatListor the fasterFlashList, give items stable keys, and keep list-item components light. - Avoid needless re-renders: memoise expensive components and keep state close to where it's used.
- Images: serve appropriately sized, compressed images and cache them. Huge images are the most common cause of janky scrolling and memory crashes.
- Animations: run them on the native/UI thread (Reanimated) rather than driving them from JavaScript every frame.
- Set a budget. On this site I held the 3D scene to a small bundle on purpose (about 133 KB gzipped) and capped particle counts on phones. For an app, set a target for startup time and install size, measure them on a low-end device, and watch for regressions as dependencies creep in.
Step 8: Build, preview and ship with EAS
npm i -g eas-cli
eas login
eas build:configure
eas build --platform all --profile preview # installable test builds
eas build --platform all --profile production # store builds
eas submit --platform all # upload to the stores
eas update --branch production --message "Fix typo" # over-the-air JS update
Three ideas make this smooth:
- Preview builds for every change. It's the same instinct as preview deployments on the web: reviewers and testers should be able to try a change on a real device without building it themselves.
- Over-the-air updates (EAS Update) let you push JavaScript and asset changes without a new store review, which is wonderful for fixing a bug quickly. But they cannot change native code. Anything that adds a native module, changes permissions or bumps the SDK needs a new binary, so tie updates to a runtime version so a new JS bundle never lands on an incompatible binary.
- Environments. Keep separate configs for development, preview and production (API URL, bundle identifiers, app icons), so a test build can never write to production data.
Step 9: Get through the stores
- Accounts: Apple's developer programme is an annual paid membership and Google Play charges a one-time registration fee. Set these up early; identity verification can take days. Newer Play personal accounts may also need a closed-testing period before production release, so check the current Play Console requirements.
- Test tracks first: TestFlight for iOS and Internal/Closed testing for Android. Ship to real testers before the public.
- Listing assets: icon, screenshots for the required device sizes, a short and long description, a support URL and a privacy policy URL.
- Privacy disclosures: Apple's privacy "nutrition labels" and Google's Data safety form must match what the app and its SDKs actually collect. Mismatches are a common rejection reason.
- Review guidelines: Apple rejects apps that are essentially a website in a wrapper with no real native value (the minimum-functionality guideline), and requires account deletion in-app if you allow account creation. If you sell digital goods, understand the in-app purchase rules before you design your pricing flow.
- Staged rollouts: release to a small percentage first, watch crash rates, then widen.
Step 10: After launch
- Crash and error reporting (for example Sentry) with source maps uploaded, so a stack trace points at your code.
- Analytics for the handful of events that tell you whether the product works: onboarding completed, core action performed, purchase made.
- A force-update path: a way to tell very old versions to upgrade when the API changes.
- OS release season: each autumn, new iOS and Android versions arrive. Test your app on the betas, and update your Expo SDK on a regular schedule instead of letting it drift for years.
- A landing page: a fast, crawlable website for the app helps people find it. The technical SEO checklist applies directly, and an AI-SEO pass helps assistants cite it.
Pitfalls to avoid
- Secrets in the app bundle.
- Testing only on a simulator and only on a fast phone.
- Asking for every permission at first launch.
- Assuming an over-the-air update can ship a native change.
- Skipping privacy-label accuracy or an in-app account deletion option.
- Letting dependencies and the SDK version drift for a year, then facing a painful upgrade.
- Building features before the one core flow is smooth, fast and tested.
When not to choose Expo and React Native
If your product is a high-end game or real-time 3D experience, use a game engine. If it depends on very new or unusual platform APIs, or needs the absolute best performance on a single platform, going fully native is simpler. And if people mostly need information or a simple tool, a good web app may be all you need. Pick the least complex tool that meets the real requirements.
The short version
- Choose Expo and React Native for most business and consumer apps; go native or use an engine when the requirements demand it.
- Scaffold with Expo, structure with Expo Router, and fetch data with a proper data layer.
- Test on real devices early, and check the backend to confirm real submissions actually arrive.
- Keep every secret on the server; keep tokens in secure storage.
- Use EAS for preview builds, store builds and OTA updates, and remember OTA can't ship native changes.
- Plan for the stores: accounts, privacy disclosures, test tracks and staged rollout.
- Measure performance and size, watch crashes after launch and keep your SDK current.
Most of what makes an app good isn't the framework. It's the same discipline as any other software: ship small, test the real path, keep secrets safe and measure what matters. If you're planning an app and want a second opinion on the approach, say hello.
Keep reading
-
Expo Exact vs Expo and React Native: What's Different and What the Performance Numbers Show
Expo's experimental Exact framework compared with Expo, React Native and React: the Contract language, native rendering, and which performance claims hold up.
-
NitroUI: React on the UI Thread, and How It Differs from React Native and Expo
NitroUI runs React on the UI thread and renders native views directly. What it changes versus React Native and Expo, what's claimed, and what isn't proven.
-
A/B Testing and Experiments on Shopify Stores: A Practical Guide to Driving Sales
How to run A/B tests and experiments on a Shopify store: what to test, sample sizes, tools, common mistakes, and how to turn results into sales.