Create a React Native project

Previously, the starting point of every new React project in this book was using Create React App to create a boilerplate for your application. For React Native, a similar boilerplate is available, which is part of the Expo CLI, and it can be set up just as easily:

You need to globally install the Expo CLI with the following command using npm:

npm install -g expo-cli

This will start the installation process, which can take some time as it will install the Expo CLI with all of its dependencies that help you develop mobile applications. After this, you're able to create a new project using the init command from the Expo CLI:

expo init house-listing

Expo will now create the project for you but, first, it will ask ...

Get React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.