Local environment
Configuring your local environment
Last updated
Was this helpful?
Configuring your local environment
Last updated
Was this helpful?
This page will help you configure a local environment for your React Native app.
The usual first step is to install before configuring your local environment. This guide focuses on OSX operating systems.
is a JavaScript is an event driven platform for building fast and scalable network apps.
is a file watching service built by Facebook.
$ brew install node
$ brew install watchman
The React Native command interface.
$ sudo gem install cocoapods
The easiest way to get Xcode is by going to the Apple Store and installing it. This install will take some time so it's best to have a fast Wifi connection.
You will also need to install the Xcode Command Line Tools. Open Xcode, then choose "Preferences..." from the Xcode menu. Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.
$ npx react-native init AwesomeProject
$ npx react-native run-ios
You should see your new app running in the iOS Simulator shortly.