Ensure you have the following installed:
- Node.js 18.20.5+ (preferably LTS)
- Expo CLI:
npm install -g expo-cli
- Expo Go on your mobile device (available on Google Play and App Store).
In the project directory, run:
npm install
npx expo start
Expo CLI will generate a QR code.
Before scanning the QR code, ensure the Expo Go app is running on your mobile device. The terminal will display a message indicating "Using Expo Go".
- Use the Expo Go app on your phone to scan the QR code from the terminal or browser.
- The application should launch on your mobile device.
If you do not have EAS CLI installed:
npm install -g eas-cli
eas login
Enter your Expo account credentials.
In the project directory:
eas build:configure
Select the platforms you wish to configure for the build.
For a development build:
eas build --profile development --platform android
Upon completion, EAS will provide a link to download the APK file.
Install the APK on your phone by copying the file and launching it on your Android device. Ensure Allow installation of apps from unknown sources is enabled.
That's it — your React Native Expo project should now be ready for launch and distribution! 🎉