Expo Application Services
API Reference

Create your first app

In this chapter, let's learn how to create a new Expo project and how to get it running.


We'll need the following tools to get started:
  • Install Expo Go on a physical device.
  • Prepare for development by installing the required tools.
This tutorial also assumes that you have a basic knowledge of JavaScript and React. If you have never written React code, go through the official React tutorial.

Step 1: Initialize a new Expo app

It will create a new project directory and install all the necessary dependencies to get the project up and running locally. Run the following command in your terminal:
# Create a project named StickerSmash
→ npx create-expo-app StickerSmash

# Navigate to the project directory
→ cd StickerSmash
This command will create a new directory for the project with the name: StickerSmash.
Let's also download the assets that we will need throughout this tutorial. After downloading the archive, unzip it and replace the existing assets directory with it in the project directory. This will override the default assets when the new project is initialized.
Now, let's open the project directory in our favorite code editor or IDE. Throughout this tutorial, we will use VS Code for our examples.

Step 2: Install dependencies

To run the project on the web, we need to install the following dependencies that will help to run the project on the web:
→ npx expo install react-dom react-native-web @expo/webpack-config

Step 3: Run the app on mobile and web

In the project directory, run the following command to start a development server from the terminal:
→ npx expo start
Once the development server is running, the easiest way to launch the app is on a physical device with Expo Go. For more information, see Open app on a device.
To see the web app in action, press w in the terminal. It will open the web app in the default web browser.
Once it is running on all platforms, the project should look like this:
App running on an all platforms
The text displayed on the app's screen above can be found in the App.js file which is at the root of the project's directory. It is the entry point of the project and is executed when the development server starts.

Up next

We have created a new Expo project and are ready to develop our StickerSmash app. In the next chapter, we'll learn how to build the app's first screen.
  • Message-iconAsk a question on the forums
  • Edit-iconEdit this page

Was this doc helpful?