Update GettingStarted.md

This commit is contained in:
Martin Konicek 2015-09-24 15:18:42 +01:00
parent a7dd4f09b5
commit a0ccebc460
1 changed files with 6 additions and 5 deletions

View File

@ -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
$ react-native init AwesomeProject
$ cd AwesomeProject/
**To run the iOS app:**
- `$ cd AwesomeProject`
- Open `ios/AwesomeProject.xcodeproj` and hit run in Xcode.
- 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!
**To run the Android app:**
* `$ react-native run-android`
* Open `index.android.js` in your text editor of choice and edit some lines.
* 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
- `$ cd AwesomeProject`
- `$ react-native run-android`
- Open `index.android.js` in your text editor of choice and edit some lines.
- 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)._