Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 22, 2019. It is now read-only.

Commit 182ded2

Browse files
authored
Improve README to get off the ground
1 parent 036bce5 commit 182ded2

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,42 +127,53 @@ It is full of neat features, check out the screencast below by clicking on the i
127127

128128
## Run Locally Using Simulators
129129

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.
131131

132-
Install node dependencies:
132+
First, install React Native CLI tools with:
133133

134134
```
135-
yarn install
135+
npm install -g react-native-cli
136136
```
137137

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:
139145

140146
```
141-
yarn start
147+
yarn install
142148
```
143149

144-
Install React Native cli:
150+
In one terminal session, run the packager:
145151

146152
```
147-
npm install -g react-native-cli
153+
yarn start
148154
```
149155

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:
151157

152158
### iOS
153159

154-
Install ios dependencies:
160+
Install the iOS dependencies:
155161

156162
```
157163
gem install cocoapods
158164
cd iOS/ && pod install
159165
```
160166

167+
Note: You may have to remove an existing `Podfile.lock` file.
168+
161169
Run the app on iOS:
162170
```
163171
react-native run-ios
164172
```
165173

174+
You may run into Xcode setup issues like [`xcrun: error: unable to find utility "instruments", not a developer
175+
`](https://stackoverflow.com/questions/39778607/error-running-react-native-app-from-terminal-ios)
176+
166177
### Android
167178

168179
Run the app on Android:

0 commit comments

Comments
 (0)