In this section, we'll use
expo-cli to set up a new React Native app.
You'll need Node.js v10 or newer installed, so if you don't have it already, download the installer at nodejs.org. Choose the appropriate package for your platform and follow the instructions to install.
First, let's install
expo-cli, a command-line tool for working with React Native projects.
npm install --global expo-cli
Now use expo-cli to create a new app:
expo init MyApp --template blank cd MyApp npm start
expo-cli may take a few minutes to download dependencies.
If you have
yarninstalled, Expo will ask whether you'd like to use
npm. Either way is fine.
You should see a QR code like this after it's done:
If you see this, success! You're ready to start working on your new React Native App.
Try changing the text in
App.js, saving the file, and watching it update on your device.
Want to learn React Native in-depth?