Installing and using the Expo command-line tool
The Expo command-line tool handles the creation of all of the scaffolding that your project needs to run a basic React Native application. Additionally, Expo has a couple of other tools that make running our app during development nice and straightforward. But first, we need to set up the environment and project:
- Before we can use Expo, we need to install Node.js, Git, and Watchman. Watchman is a tool for watching files in our project to trigger actions like rebuilds when they change. All of the required tools and details can be found here: https://docs.expo.dev/get-started/installation/#requirements.
- Once this installation is complete, we can start a new project by running the command:
npx create-expo-app --template
- Next, the CLI will ask you questions about your future project. You should see something like this in your terminal:
? Choose a template: ' - Use arrow-keys. Return to...