Running on Device and Emulator
Launch your app on a physical device with Expo Go and on an emulator, then learn how to reload and inspect changes in real time.
Starting the Development Server
To run your app, go to its folder and run npx expo start. That launches Metro and shows a QR code. Keep your phone and computer on the same Wi-Fi for it to connect.
# Start the Expo development server
cd MyFirstApp
npx expo start
# Force iOS Simulator directly
npx expo start --ios
# Force Android Emulator directly
npx expo start --android
# Start in web browser mode
npx expo start --webRunning on iOS Simulator
With Metro running, press i to launch the iOS Simulator. The first load installs Expo Go and takes a moment; after that it's fast. macOS only, sorry. 🍎
# With Metro running, press 'i' in the terminal
# Or launch a specific simulator:
xcrun simctl boot 'iPhone 15 Pro'
# List available devices
xcrun simctl list devices
# Open the Simulator app
open -a SimulatorAll lessons in this course
- Installing Node, Expo CLI, and Simulators
- Creating Your First Expo Project
- Running on Device and Emulator
- Understanding the Project Structure