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 startStart 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.
- Download the zip from the app's page and unzip it.
- Open a terminal in the app's folder and install its packages:Terminal
npm ci - Start the dev server. It prints a QR code:Terminal
npx expo start
On an Android phone
- 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).
- Put the phone on the same Wi-Fi as your computer.
- 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:
- Join the Apple Developer Program (see App Store below).
- Build Expo Go on EAS and send it to your TestFlight. Follow its questions:Terminal
npx eas-cli@latest go - Install the TestFlight app on the iPhone.
- 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.
- 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 - Run
npx expo startin 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:
npm install --global @expo/ngrok
npx expo start --tunneliOS 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
- Open the Mac App Store, search for Xcode and click Install. It's a large download.
- Open Xcode once and let it finish setting up.
- Open Xcode > Settings… (⌘ ,), choose Locations, and pick the newest version in Command Line Tools.
- Open Xcode > Settings… > Components. Under Platform Support, click Get next to iOS to install a simulator.
Open the app in the simulator
- In the app's folder, run
npx expo start. - Press
i. Expo CLI starts a simulator, installs the right Expo Go in it and opens the app. - To pick another iPhone model, press
Shift+iinstead.
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
iagain. List them withxcrun simctl list devices availableand boot one by its name, as below. - Expo Go doesn't open: click inside the simulator so iOS shows its prompt, then click OK.
xcrunerrors: delete Expo Go from the simulator and pressiagain. If that fails, reset the simulator: Device > Reset Content and Settings… in Device Hub, or Erase All Content and Settings… on Xcode 26.
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
- Download Android Studio from developer.android.com/studio and install it. In the Setup Wizard, choose Standard.
- Open Settings > Languages & Frameworks > Android SDK.
- On the SDK Platforms tab, under Android 16 (Baklava), check Android SDK Platform 36 and Sources for Android 36.
- 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.
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-toolsLinux: add these lines to ~/.bashrc (or ~/.zshrc with zsh), then open a new terminal.
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-toolsWindows:
- Open Control Panel > User Accounts > User Accounts > Change my environment variables.
- Add a user variable named
ANDROID_HOMEwith the value%LOCALAPPDATA%\Android\Sdk. - Edit Path and add
%LOCALAPPDATA%\Android\Sdk\platform-tools. - Open a new PowerShell window.
On any system, adb --version should now print a version.
Make a virtual device
- On Android Studio's start screen, click More Actions > Virtual Device Manager.
- Click Create virtual device, pick a phone, pick a system image, and click Finish.
- Start it with the Play button in Device Manager.
- In the app's folder, run
npx expo startand pressa. Expo CLI installs the right Expo Go and opens the app.Shift+apicks another device.
A real Android phone over USB
- 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.
- 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.
- Plug the phone into your computer and accept the prompt on the phone that asks to allow debugging from this computer.
- Check that the computer sees it. The phone should be listed as
device:Terminaladb devices - Run
npx expo startand pressa. 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.
export const BRAND = {
primary: "#cfe0b8",
secondary: "#8fae7e",
headingFont: "YoungSerif_400Regular",
roundness: 24,
}To use another heading font:
- Install it from Expo's Google Fonts packages, for example Fraunces:Terminal
npx expo install @expo-google-fonts/fraunces - Load it in
app/_layout.tsxwithuseFonts, next to the font that's there. - Set
headingFontinBRANDto its name, likeFraunces_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:
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.
name: "Understory",
slug: "plants-understory",
scheme: "understory",
ios: { supportsTablet: false, bundleIdentifier: "com.yourcompany.understory" },
android: { package: "com.yourcompany.understory" },Icon and splash screen
- Make the icon a square
.png, 1024 × 1024. Android's adaptive icon also needs a foreground image on a background color. - Add the splash screen package:Terminal
npx expo install expo-splash-screen - Put the images in
assets/. Inapp.config.ts, addicon, and change theandroidandpluginslines that are already there to these:
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:
npx expo install expo-dev-clientBuild 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.
npx expo run:android
npx expo run:iosEach 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):
eas build --platform android --profile development
eas build --platform ios --profile developmentInstall 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
- Make an account at expo.dev.
- Install the EAS command line tool and sign in:Terminal
npm install --global eas-cli eas login - In the app's folder, set it up for EAS. Answer its questions:Terminal
eas build:configure - Build for each store.
eas build --platform allbuilds both at once:Terminaleas 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
- 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.
- 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 - 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.
- 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
- Make a Google Play developer account. See Google's page for the fee.
- In Google Play Console, click Create app.
- Make a Google Service Account key, so EAS can upload for you. Expo's Android submit guide shows each click.
- Build, then send it in:Terminal
eas build --platform android eas submit --platform android - 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.
- Install the next SDK. Replace 59 with the SDK you're moving to:Terminal
npm install expo@^59.0.0 - Move every Expo package to the version that SDK expects:Terminal
npx expo install --fix - Check for common problems:Terminal
npx expo-doctor - If you made
androidandiosfolders with prebuild, delete them. The next build makes them again. - 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:
npx expo start --clearProject 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
ioraagain. 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, thennpx 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
rin 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 credentialsshows 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 iosmakes a new one.
Android device or emulator not found
- Run
adb devices. Your phone or emulator should be listed asdevice. adbnot found: checkANDROID_HOMEand 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, thenadb devices. - Start the emulator from Device Manager before you press
a, or pressShift+ato 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 pressjagain. If it still says that, start withnpx expo start --localhostor--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
This guide follows these pages. They go deeper, and change first when Expo, Apple or Google change something.
- Expo: set up your environment
- Expo: iOS simulator
- Expo: Android Studio emulator
- Expo: development builds
- Expo: create your first build
- Expo: submit to the Apple App Store
- Expo: submit to the Google Play Store
- Expo: upgrade Expo SDK
- Apple: enroll in the Developer Program
- Apple: App Review Guidelines
- Android: run apps on a hardware device
- Google Play: Developer Program Policies
Help
Stuck, or found a bug in an app? Get in touch.