Skip to content
Language22
Menu

Mobile apps

How to run an app from Apps on your phone, a simulator or an emulator, make it yours, and publish it to the App Store and Google Play.

npx expo start

Start here

What you get

Every app under Apps is a real React Native app made with Expo, in TypeScript. One project runs on both Native iOS and Native Android. The app you see on its page here is the web version, only a preview: download the zip to run the real one on a phone.

The zip is a full project: its own package.json and lockfile, the screens in app/ (Expo Router), the settings in app.config.ts, and a README.md that lists every file and the usual changes.

What you need

  • Node.js 22.13 or newer on the 22 line, or 24.3 or newer on the 24 line. Expo SDK 58 doesn't support odd versions like 23 or 25. Check yours with node --version.
  • npm, which comes with Node.js.
  • A phone, a simulator or an emulator to run it on. The next sections show each.
  • A Mac with Xcode, only for the iOS simulator and for iOS builds on your own computer. Android Studio runs on Mac, Windows and Linux.
  • A free Expo account, to build for the stores with EAS.

Run it on your phone

Expo Go is a free app that runs your project while you work on it: save a file and the phone shows the change. Each Expo Go build runs one Expo SDK, and our apps use SDK 58, so the phone needs Expo Go for SDK 58.

  1. Download the zip from the app's page and unzip it.
  2. Open a terminal in the app's folder and install its packages:
    Terminal
    npm ci
  3. Start the dev server. It prints a QR code:
    Terminal
    npx expo start

On an Android phone

  1. Install Expo Go for SDK 58. The Google Play version can lag behind a new SDK; if it does, get it from expo.dev/go (choose SDK 58 and Android).
  2. Put the phone on the same Wi-Fi as your computer.
  3. In Expo Go, scan the QR code. The app opens.

On an iPhone

Expo Go on the App Store doesn't support SDK 58 yet, so scanning the QR code with it won't work. You have two ways:

  • On a Mac, use the iOS simulator. It's free and needs no Apple account. See iOS simulator below.
  • On a real iPhone, build Expo Go for SDK 58 into your own TestFlight. This needs a paid Apple Developer Program membership.

For a real iPhone:

  1. Join the Apple Developer Program (see App Store below).
  2. Build Expo Go on EAS and send it to your TestFlight. Follow its questions:
    Terminal
    npx eas-cli@latest go
  3. Install the TestFlight app on the iPhone.
  4. In App Store Connect, open the Expo Go app, then its TestFlight tab, and add your Apple ID email as an internal tester. Accept the email invite, then install Expo Go from TestFlight.
  5. Sign in to the same Expo account on both sides: in Expo Go (the account icon at the top right) and in the terminal:
    Terminal
    npx expo login
  6. Run npx expo start in the app's folder and scan the QR code with the iPhone's Camera app.

When the phone can't reach your computer

If the phone isn't on the same network, or the network blocks it, start the server with a tunnel. It needs Expo's ngrok package once:

Terminal
npm install --global @expo/ngrok
npx expo start --tunnel

iOS simulator (Mac)

The iOS simulator runs the app in a phone-shaped window on a Mac. It's free and needs no Apple account. Expo SDK 58 needs Xcode 26.4 or newer.

Install Xcode

  1. Open the Mac App Store, search for Xcode and click Install. It's a large download.
  2. Open Xcode once and let it finish setting up.
  3. Open Xcode > Settings… (⌘ ,), choose Locations, and pick the newest version in Command Line Tools.
  4. Open Xcode > Settings… > Components. Under Platform Support, click Get next to iOS to install a simulator.

Open the app in the simulator

  1. In the app's folder, run npx expo start.
  2. Press i. Expo CLI starts a simulator, installs the right Expo Go in it and opens the app.
  3. To pick another iPhone model, press Shift + i instead.

On Xcode 27 the simulators live in Device Hub (open -a DeviceHub); on Xcode 26 they're in the Simulator app (open -a Simulator). Expo CLI works with both.

If the simulator gets stuck

  • Expo CLI hangs while opening a simulator: start one yourself, then press i again. List them with xcrun simctl list devices available and boot one by its name, as below.
  • Expo Go doesn't open: click inside the simulator so iOS shows its prompt, then click OK.
  • xcrun errors: delete Expo Go from the simulator and press i again. If that fails, reset the simulator: Device > Reset Content and Settings… in Device Hub, or Erase All Content and Settings… on Xcode 26.
Terminal
xcrun simctl boot "iPhone 17"

Android emulator

The Android emulator runs the app in a phone-shaped window on Mac, Windows or Linux. It comes with Android Studio.

Install Android Studio

  1. Download Android Studio from developer.android.com/studio and install it. In the Setup Wizard, choose Standard.
  2. Open Settings > Languages & Frameworks > Android SDK.
  3. On the SDK Platforms tab, under Android 16 (Baklava), check Android SDK Platform 36 and Sources for Android 36.
  4. On the SDK Tools tab, check Android SDK Build-Tools and Android Emulator. Click Apply.

Set ANDROID_HOME

Tools like Expo CLI find the Android SDK through ANDROID_HOME. Check the real SDK path in Android Studio (Settings > Languages & Frameworks > Android SDK) if yours differs from the ones below.

macOS: add these lines to ~/.zshrc (or ~/.bashrc with bash), then open a new terminal or run source ~/.zshrc.

~/.zshrc
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools

Linux: add these lines to ~/.bashrc (or ~/.zshrc with zsh), then open a new terminal.

~/.bashrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools

Windows:

  1. Open Control Panel > User Accounts > User Accounts > Change my environment variables.
  2. Add a user variable named ANDROID_HOME with the value %LOCALAPPDATA%\Android\Sdk.
  3. Edit Path and add %LOCALAPPDATA%\Android\Sdk\platform-tools.
  4. Open a new PowerShell window.

On any system, adb --version should now print a version.

Make a virtual device

  1. On Android Studio's start screen, click More Actions > Virtual Device Manager.
  2. Click Create virtual device, pick a phone, pick a system image, and click Finish.
  3. Start it with the Play button in Device Manager.
  4. In the app's folder, run npx expo start and press a. Expo CLI installs the right Expo Go and opens the app. Shift + a picks another device.

A real Android phone over USB

  1. On the phone, find Build number (on a Pixel: Settings > About phone > Build number) and tap it seven times, until it says you are now a developer.
  2. Turn on USB debugging in Developer options (on Android 9 and newer: Settings > System > Developer options > USB debugging). Menu names differ a little between phone makers.
  3. Plug the phone into your computer and accept the prompt on the phone that asks to allow debugging from this computer.
  4. Check that the computer sees it. The phone should be listed as device:
    Terminal
    adb devices
  5. Run npx expo start and press a. Expo CLI installs the right Expo Go and opens the app.

Make it yours

Each app's README.md says which file holds what. The examples here are from Understory, the plant shop app; other apps use the same places.

Colors, font and corners

The values in Brand settings on the app's page live in BRAND in constants/theme.ts. Change them there; pressed shades and the text on buttons follow by themselves.

constants/theme.ts
export const BRAND = {
  primary: "#cfe0b8",
  secondary: "#8fae7e",
  headingFont: "YoungSerif_400Regular",
  roundness: 24,
}

To use another heading font:

  1. Install it from Expo's Google Fonts packages, for example Fraunces:
    Terminal
    npx expo install @expo-google-fonts/fraunces
  2. Load it in app/_layout.tsx with useFonts, next to the font that's there.
  3. Set headingFont in BRAND to its name, like Fraunces_500Medium.

Words and products

Every word on every screen is in data/copy.ts. Products, prices and categories are in data/products.ts.

Your own photos

The apps draw their pictures in code, so they run with no images. To use your own photos, put them in assets/photos/ and point to one from a product in data/products.ts:

data/products.ts
photo: {
  src: require("@/assets/photos/monstera.jpg"),
  alt: "Monstera in a cream pot",
},

Products without a photo keep their drawing.

App name and ids

In app.config.ts, set the app's name and replace com.example in its ids with your own reverse domain. The stores know your app by these ids, so set them before your first build.

app.config.ts
name: "Understory",
slug: "plants-understory",
scheme: "understory",
ios: { supportsTablet: false, bundleIdentifier: "com.yourcompany.understory" },
android: { package: "com.yourcompany.understory" },

Icon and splash screen

  1. Make the icon a square .png, 1024 × 1024. Android's adaptive icon also needs a foreground image on a background color.
  2. Add the splash screen package:
    Terminal
    npx expo install expo-splash-screen
  3. Put the images in assets/. In app.config.ts, add icon, and change the android and plugins lines that are already there to these:
app.config.ts
icon: "./assets/icon.png",
android: {
  package: "com.yourcompany.understory",
  adaptiveIcon: {
    foregroundImage: "./assets/adaptive-icon.png",
    backgroundColor: "#0f1f19",
  },
},
plugins: [
  ["expo-router", { asyncRoutes: false }],
  "expo-font",
  [
    "expo-splash-screen",
    {
      image: "./assets/splash-icon.png",
      backgroundColor: "#0f1f19",
      imageWidth: 200,
    },
  ],
],

Expo Go always shows its own name and icon, and it isn't reliable for splash screens. Check them in a build: see the next two sections.

Development builds

A development build is your own version of Expo Go, made from your project. It runs any native library and native setting you add.

When you need one

  • You add a library with native code that Expo Go doesn't include.
  • You want to see your own app name, icon and splash screen.
  • You're getting ready for the stores. Most apps move to development builds by then.

First add Expo's dev client to the app:

Terminal
npx expo install expo-dev-client

Build on your computer

This needs Android Studio for Android, a Mac with Xcode for iOS, and JDK 17 for Android builds. A build that runs on a real iPhone also needs a paid Apple Developer account.

Terminal
npx expo run:android
npx expo run:ios

Each one builds the app, installs it on an emulator, simulator or plugged-in phone, and starts the dev server. Add --device to pick from a list.

Build in the cloud

No Mac, or no Android Studio? EAS builds the app on Expo's servers (set up EAS first, see Build and publish):

Terminal
eas build --platform android --profile development
eas build --platform ios --profile development

Install the build on your phone, then run npx expo start.

What prebuild does

Native apps need android and ios folders. Our apps don't ship them: npx expo prebuild makes them from app.config.ts and package.json, and run:android, run:ios and EAS do it for you. The app's .gitignore already leaves them out of git.

To make them fresh, run npx expo prebuild --clean. Changes you made by hand inside those folders are lost then, so keep native settings in app.config.ts.

Build and publish

EAS (Expo Application Services) builds the store versions of your app on Expo's servers and sends them to Apple and Google. A free Expo account is enough to start. You don't need a Mac for iOS builds this way.

Set up EAS

  1. Make an account at expo.dev.
  2. Install the EAS command line tool and sign in:
    Terminal
    npm install --global eas-cli
    eas login
  3. In the app's folder, set it up for EAS. Answer its questions:
    Terminal
    eas build:configure
  4. Build for each store. eas build --platform all builds both at once:
    Terminal
    eas build --platform android
    eas build --platform ios

Set your own app name, ids and icon first (see Make it yours). eas whoami shows which Expo account you're signed in to.

App Store

  1. Join the Apple Developer Program at developer.apple.com. You need an Apple Account with two-factor authentication; a company also needs a D-U-N-S Number. See Apple's page for the yearly fee.
  2. Build, then send the build to App Store Connect. The command asks which build to send:
    Terminal
    eas build --platform ios
    eas submit --platform ios
  3. After Apple processes it (usually 10 to 15 minutes), the build shows up in TestFlight. Install TestFlight on your iPhone and try the app there first.
  4. In App Store Connect, fill in the app's store page, then submit the build for App Review.

eas build --platform ios --auto-submit builds and sends in one step.

Google Play

  1. Make a Google Play developer account. See Google's page for the fee.
  2. In Google Play Console, click Create app.
  3. Make a Google Service Account key, so EAS can upload for you. Expo's Android submit guide shows each click.
  4. Build, then send it in:
    Terminal
    eas build --platform android
    eas submit --platform android
  5. The first upload lands on the internal testing track. Add up to 100 testers in Test and release > Testing > Internal testing and share the link with them.

A personal developer account made after November 13, 2023 must run a closed test with at least 12 testers for 14 days in a row before it can publish to everyone.

Store review

  • Apple and Google both review every app before it goes live, and each update after it.
  • Read Apple's App Review Guidelines and Google Play's Developer Program Policies before you send it in.
  • Shop apps come with a demo checkout that charges nothing. Connect a real payment provider before you sell in the app; the app's README says where.

Updating

Each Expo Go runs only one SDK, so upgrade when a new SDK comes out and you want the newest Expo Go or its new features. Go one SDK at a time and read that SDK's release notes first.

  1. Install the next SDK. Replace 59 with the SDK you're moving to:
    Terminal
    npm install expo@^59.0.0
  2. Move every Expo package to the version that SDK expects:
    Terminal
    npx expo install --fix
  3. Check for common problems:
    Terminal
    npx expo-doctor
  4. If you made android and ios folders with prebuild, delete them. The next build makes them again.
  5. Run the app on both platforms and check every screen.

Between upgrades, npx expo install --check lists the packages that don't match your SDK, and npx expo install --fix updates them.

Troubleshooting

Old code keeps showing

Metro, the bundler behind npx expo start, keeps a cache. If a change doesn't show or an old error keeps coming back, start it with a clean cache:

Terminal
npx expo start --clear

Project is incompatible with this version of Expo Go

Expo Go and the app must use the same SDK. Our apps use SDK 58 (the expo version in package.json).

  • Simulator or emulator: delete Expo Go from it and press i or a again. Expo CLI installs the matching one.
  • Android phone: install Expo Go for SDK 58 from expo.dev/go.
  • iPhone: use the TestFlight build of Expo Go (see On an iPhone).
  • Still there? Run npx expo-doctor@latest, then npx expo install --fix.

The phone can't connect

  • Put the phone and computer on the same Wi-Fi, or use npx expo start --tunnel (see When the phone can't reach your computer).
  • On an iPhone with the TestFlight Expo Go, sign in to the same Expo account in Expo Go and with npx expo login.
  • Press r in the terminal to reload the app on every connected phone.

iOS signing errors

  • Any build that runs on a real iPhone needs a paid Apple Developer account to sign it. The simulator doesn't.
  • With EAS, eas credentials shows the certificates and profiles EAS keeps for the app, and fixes or replaces them.
  • A provisioning profile runs out after 12 months. The next eas build --platform ios makes a new one.

Android device or emulator not found

  • Run adb devices. Your phone or emulator should be listed as device.
  • adb not found: check ANDROID_HOME and Path (see Set ANDROID_HOME), then open a new terminal.
  • A phone that isn't listed: unlock it, check that USB debugging is on, and accept the prompt that asks to allow debugging.
  • The emulator is open but not listed: restart adb with adb kill-server, then adb devices.
  • Start the emulator from Device Manager before you press a, or press Shift + a to pick one.

Hermes and the debugger

Hermes is the JavaScript engine Expo uses on phones. Press j in the terminal to open the debugger in Chrome or Edge.

  • "No compatible apps connected": reload the app with r, then press j again. If it still says that, start with npx expo start --localhost or --tunnel.
  • The debugger needs a debug build: Expo Go or a development build, not a store build.

No blur on Android

That's by design. Glass panels blur on iOS and the web; on Android they show the same tint without the blur.

The web preview looks different

The preview on our site is the app's web version, run in your browser. Some things differ on a phone: native blur, fonts, the keyboard, safe areas around the notch and how swipes feel. Trust the phone. To see the web version yourself, press w in the terminal.

Official guides

Help

Stuck, or found a bug in an app? Get in touch.