Generating the projects
To start building our note taking application for iOS, we are going to need a couple of command-line tools.
- React Native 0.14.2 requires Node.js v4+, we are going to use v5.0.0; visit https://nodejs.org for more information (we recommend managing different node versions with NVM https://github.com/creationix/nvm)
- Install the latest version of NPM from https://www.npmjs.com/
Great, now that we have these tools we can install the react-native-cli
. The react-native-cli
exposes an interface that does all the work of setting up a new React Native project for us:
- To install
react-native-cli
, use thenpm
command:npm install -g react-native-cli
- Next, we are going to generate a new React Native project called
ReactNotes
using thecli
and thereact-native init
command. The output of the command looks similar to the following:$ react-native init ReactNotes
This will walk you through the creation of a new React Native project in
/Users/ethanholmes/ReactNotes
. - Set up a new React...