-
Install dependencies
npm install
-
Start the app
npx expo start
In the output, you'll find options to open the app in a
- development build
- Android emulator
- iOS simulator
- Expo Go, a limited sandbox for trying out app development with Expo
Press j to open up the Native dev tools (debugger), w for the web app version.
We will be using Expo Go for development for now.
If you are unable to run the app using the Expo Go QR Code and encounter an error like:
Java.io.IOException: Failed to download remote update, you can try again using a wired connection, or run
npx expo start --tunnel Alternative solutions (if --tunnel does not work):
- Disable Windows Defender firewall if you are on Windows:
- Ensure both devices are on the same network
- In the terminal when you run
npx expo startcommand, below the QR code you will see a message that displaysMetro waiting on exp://192.168.XX.XXX:PORT#. Which is the IP:Port# being used to by expo. Keep this port # in mind. - Type and go to
Windows Security(looks like a blue shield)in your Search Bar - Click on
Network Protection>Advanced Settings>Inbound Rules>New Rule>Port>TCP>Specific Port - Find the port # that is used by Expo
- Allow the connection and leave all checked
- Add Name/Description
- Reinstall Expo app, restart computer and connection
- If there are any issues on Arch Linux, please lmk.
- This app should be using Expo SDK 52, the newest version compatible with Expo Go. Install the latest version of Expo if it does not work:
- This means that expo is not able to update and edit your
.gitignorewhen you runnpx expo startinside client. To fix this, allow expo to overwrite changes inside your.gitignore, and make sure you have the proper permissions for the file. - On Windows: right click on
.gitignoreinside File Explorer,Properties->Security-> Make sure user has full control permissions, grant yourself full permissions if not. - Then run
npx expo start --clearto clear cache.
npm install expo@latestin the root directory.
To learn more about developing your project with Expo, look at the following resources:
- Expo documentation: Learn fundamentals, or go into advanced topics with our guides.
- Learn Expo tutorial: Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.