You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,42 +127,53 @@ It is full of neat features, check out the screencast below by clicking on the i
127
127
128
128
## Run Locally Using Simulators
129
129
130
-
### Run the packager (for both iOS and Android)
130
+
To develop and test the application you need to setup your local environment, then run the simulator. First, install `react-native-cli` then run the _packager_ in one terminal. Then in another terminal launch the simulator with the `react-native` command. See below for more details.
131
131
132
-
Install node dependencies:
132
+
First, install React Native CLI tools with:
133
133
134
134
```
135
-
yarn install
135
+
npm install -g react-native-cli
136
136
```
137
137
138
-
Run the packager:
138
+
⚠️ Follow the [Getting Started guide](http://facebook.github.io/react-native/docs/0.48/getting-started.html) to make sure you have everything ready to run a react-native app.
139
+
140
+
### Run the packager (for both iOS and Android)
141
+
142
+
Now install `yarn`. On OSX simply do `brew install yarn`.
143
+
144
+
Use `yarn` to install node dependencies:
139
145
140
146
```
141
-
yarn start
147
+
yarn install
142
148
```
143
149
144
-
Install React Native cli:
150
+
In one terminal session, run the packager:
145
151
146
152
```
147
-
npm install -g react-native-cli
153
+
yarn start
148
154
```
149
155
150
-
⚠️ Follow the [Getting Started guide](http://facebook.github.io/react-native/docs/0.48/getting-started.html) to make sure you have everything ready to run a react-native app.
156
+
Now depending on your target platform, run the simulator using the appropriate `react-native` command:
151
157
152
158
### iOS
153
159
154
-
Install ios dependencies:
160
+
Install the iOS dependencies:
155
161
156
162
```
157
163
gem install cocoapods
158
164
cd iOS/ && pod install
159
165
```
160
166
167
+
Note: You may have to remove an existing `Podfile.lock` file.
168
+
161
169
Run the app on iOS:
162
170
```
163
171
react-native run-ios
164
172
```
165
173
174
+
You may run into Xcode setup issues like [`xcrun: error: unable to find utility "instruments", not a developer
0 commit comments