- react-native-cli: 2.0.1
- react-native: 0.57.0
- Xcode: 9.0.1
- Android Studio: 2.3
If Xcode is set up:
- To run on ios simulator within Xcode, type the
react-native run-ios
command into the terminal. - To specify the device the simulator should run on use the
--simulator
flag followed by the device name such asreact-native run-ios --simulator="iPhone 7"
.
If Android Studio and SDK Tools are set up:
- To run on android simulator, type the
react-native run-android
command into the terminal.