mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-12 10:26:49 +08:00
Summary:
A few more docs where the ejected metadata was lost in the autodocs flattening transition that happened in 9ec9567390.
Closes https://github.com/facebook/react-native/pull/16773
Differential Revision: D6286368
Pulled By: hramos
fbshipit-source-id: bb7c032ca386e473c393821ce031714168d31719
924 B
924 B
id, title, layout, category, permalink, banner, next, previous
| id | title | layout | category | permalink | banner | next | previous |
|---|---|---|---|---|---|---|---|
| running-on-simulator-ios | Running On Simulator | docs | Guides (iOS) | docs/running-on-simulator-ios.html | ejected | communication-ios | linking-libraries-ios |
Starting the simulator
Once you have your React Native project initialized, you can run react-native run-ios inside the newly created project directory. If everything is set up correctly, you should see your new app running in the iOS Simulator shortly.
Specifying a device
You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone 6". If you wish to run your app on an iPhone 4s, just run react-native run-ios --simulator="iPhone 4s".
The device names correspond to the list of devices available in Xcode. You can check your available devices by running xcrun simctl list devices from the console.