LoginSignup
31
15

More than 5 years have passed since last update.

ReactNativeでIOSデバイスを指定してシミュレーターを起動する方法

Last updated at Posted at 2017-10-26

参考URL

利用できるデバイスを確認

xcrun simctl list devices

デバイスを指定

react-native run-ios --simulator="iPhone 5s"

こんな感じにすればOK

IPhone Xも指定できるらしいが、自分はうまくいかなかったので
XCodeから直接シミュレーターでIPhone Xを指定してやった。

iPhone/iPad解像度(画面サイズ)早見表 - Qiita https://qiita.com/tomohisaota/items/f8857d01f328e34fb551

デバイス毎のサイズの確認はこちらが参考になった

31
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
15