How to do it...

Now, to create our first app:

  1. Let's do it with this command:
    react-native init MyFirstReactNativeApp
  1. After we built our React Native app, we need to install Watchman, which is a file-watching service required by React Native. To install it, go to https://facebook.github.io/watchman/docs/install.html and download the latest version for your OS (Windows, Mac, or Linux).
  2. In this case, we are going to use Homebrew to install it for Mac. If you don't have Homebrew, you can install it with this command:
    /usr/bin/ruby -e "$(curl -fsSL   https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. To install Watchman, you need to run:
    brew update     brew install watchman
  1. To start the React Native project, we need to ...

Get React Cookbook 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.