I am using react-native version .28 and created a project which works fine.
I can run it through two ways either from xcode and other from command: react-native run-ios
But I do not want to use Xcode, I only want to use the command, but through command, I can chose only a default device: Iphone 6(9.2)
How can I change the device?
Cœur
39k25 gold badges206 silver badges281 bronze badges
asked Jul 1, 2016 at 4:39
1 Answer 1
Yes, You can change the device by running:
react-native run-ios --simulator="iPhone 6"
or if you want to make it default you can create an alias at ~/.bash_profile file:
alias rn-iphone6="react-native run-ios --simulator \"iPhone 6\""
after that run it by the created alias:
rn-iphone6
answered Aug 12, 2016 at 11:04
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
lang-js
react-native run-ios --simulator="iPhone 5s"
if you want to run on iPhone 6 you typereact-native run-ios --simulator="iPhone 6"