Getting started with React Native for mobile development
MIT License
Getting started with React Native for mobile development
You will need to have Brew and Xcode already installed. Make sure to also have the Chrome browser installed.
# Install Node.js
brew install node
# Install Watchman
brew install watchman
# Install React Native Comand Line Tools
npm install -g react-native-cli
I suggest you use Atom instead of Sublime due to better syntax highlighting for JavaScript.
Now, you can create a new project:
react-native init MyProject
# Go to the project directory and run it
cd MyProject
react-native run-ios
The entry point for your app will be in the file index.ios.js
If you wish to run the example app in this repository without creating your own project, cd to MyProject and run
npm install
That will install all the package dependencies necessary for the app. Then, follow the instructions above to call react-native run-ios
.