Skip to Content

Prebuild

Before running the app, you need to generate the native code using Expo Prebuild. This step creates the android and ios directories required for running your React Native code.

npx expo prebuild --clean

Running App

Once your environment is configured, you can run the app:

For iOS:

# Development build npx expo run:ios

For Android:

# Development build npx expo run:android

Make sure you have Xcode installed for iOS development and Android Studio with necessary SDKs for Android development.

Note: If you haven’t made any native changes or haven’t added native bind expo packages,

you don’t need to use npx expo run:ios or npx expo run:android.

Instead, you can use:

npx expo start -c

This command clears the cache and starts the development server, which is faster and more convenient for pure JavaScript/TypeScript development.