Update GettingStarted.md
This commit is contained in:
parent
a7dd4f09b5
commit
a0ccebc460
|
@ -31,20 +31,21 @@ To write React Native apps for Android, you will need to install the Android SDK
|
||||||
|
|
||||||
$ npm install -g react-native-cli
|
$ npm install -g react-native-cli
|
||||||
$ react-native init AwesomeProject
|
$ react-native init AwesomeProject
|
||||||
$ cd AwesomeProject/
|
|
||||||
|
|
||||||
**To run the iOS app:**
|
**To run the iOS app:**
|
||||||
|
|
||||||
|
- `$ cd AwesomeProject`
|
||||||
- Open `ios/AwesomeProject.xcodeproj` and hit run in Xcode.
|
- Open `ios/AwesomeProject.xcodeproj` and hit run in Xcode.
|
||||||
- Open `index.ios.js` in your text editor of choice and edit some lines.
|
- Open `index.ios.js` in your text editor of choice and edit some lines.
|
||||||
- Hit ⌘-R in your iOS simulator to reload the app and see your change!
|
- Hit ⌘-R in your iOS simulator to reload the app and see your change!
|
||||||
|
|
||||||
**To run the Android app:**
|
**To run the Android app:**
|
||||||
|
|
||||||
* `$ react-native run-android`
|
- `$ cd AwesomeProject`
|
||||||
* Open `index.android.js` in your text editor of choice and edit some lines.
|
- `$ react-native run-android`
|
||||||
* Press the menu button (F2 by default, or ⌘-M in Genymotion) and select *Reload JS* to see your change!
|
- Open `index.android.js` in your text editor of choice and edit some lines.
|
||||||
* Run `adb logcat *:S ReactNative:V ReactNativeJS:V` in a terminal to see your app's logs
|
- Press the menu button (F2 by default, or ⌘-M in Genymotion) and select *Reload JS* to see your change!
|
||||||
|
- Run `adb logcat *:S ReactNative:V ReactNativeJS:V` in a terminal to see your app's logs
|
||||||
|
|
||||||
_Note: If you are using a device, see the [Running on Device page](http://facebook.github.io/react-native/docs/running-on-device-android.html#content)._
|
_Note: If you are using a device, see the [Running on Device page](http://facebook.github.io/react-native/docs/running-on-device-android.html#content)._
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue