(It is better if you complete these steps before running the app 1.Activating REST API and 2.Configuring API in the app )
— If you have expo go app installed in your device / simulator, please remove it first —
Follow the following steps :
Step 1: Open your project in VS code and open the terminal in VS Code.
Step 2: Run the command: “npx expo login”. It will ask for expo username and password. Provide these and press enter.
npx expo login
Step 3: Make sure your phone and the development computer is under same wifi connection / router.
Step 4: Now run this command: “npx expo start” to start the development server.
npx expo start
Step 5: Run the following command “eas build -p android –profile development” or “eas build –profile development –platform android” for android and for ios“eas build -p ios –profile development”.
Android
eas build -p android --profile development
eas build --profile development --platform android
iOS
eas build --profile development --platform ios
– (android)The first time you build the project you will be asked whether you’d like to upload a keystore or have expo handle it for you. If you don’t know what a keystore is, you can have expo generate one for you. Otherwise, feel free to upload your own.
– Wait for the build to finish. After finishing the build, you’ll get a direct download link in the terminal window. Besides, the file will be available for downloading for the next 29 days from the day of building in your expo account. You can simply log into your expo account and click on builds option, that will give you the latest builds to download.
– (android) After downloading install it to your device and open it. You’ll see expo interface. Login to expo by clicking the top right corner icon(see image below). After logging in Click ‘Fetch development servers’. You’ll see your app now. Click on your app name and it’ll open the app.
– (ios) During build process, you’ll need to register your device for testing purpose. Just follow the on screen directions. After building, you’ll be able to install it in your registered device by scanning the QR code. After installing it to your device and open it. You’ll see expo interface. Login to expo by clicking the top right corner icon(see image below). After logging in Click ‘Fetch development servers’. You’ll see your app now. Click on your app name and it’ll open the app.