First, install all project dependencies:
npm installThen, install the necessary CLI tools globally:
npm install -g expo-cli eas-cliNote: If you prefer not to install globally, you can use npx before each command instead.
Build your development client locally on your machine:
# For Android
npx expo run:android
# For iOS
npx expo run:iosPros: Free, no cloud service needed Cons: Requires Android Studio/Xcode setup locally
Build your development client using Expo's cloud service:
# First-time setup
eas build:configure
# Build for Android
eas build --profile development --platform android
# Build for iOS
eas build --profile development --platform ios
# Build for both platforms
eas build --profile development --platform allPros: No local setup required, builds in the cloud Cons: Requires EAS subscription for multiple builds
Once your development build is installed on your device:
# Start with tunnel for remote testing
npx expo start --dev-client --tunnel
# Clear cache if needed
npx expo start --dev-client --clear- Tunnel not working? Try
--localhostor--laninstead - Build failed? Clear cache with
npx expo start --clear - Need to update the build? Rerun the build command and reinstall on device
- Testing on physical device? Use
--tunnelfor easier connection