React Native Change Default iOS Simulator Device

前端 未结 13 1600
轮回少年
轮回少年 2020-12-12 09:56

When I run this command:

react-native run-ios

My app runs by default in the iPhone6 simulator device:

Found Xcode project R         


        
13条回答
  •  盖世英雄少女心
    2020-12-12 10:16

    You can also use npm for this by adding an entry to the scripts element of your package.json file. E.g.

    "launch-ios": "react-native run-ios --simulator \"iPad Air 2\""
    

    Then to use this: npm run launch-ios

提交回复
热议问题