Skip to content

Instantly share code, notes, and snippets.

@KhalilZaidoun
Forked from rexlow/md
Created December 2, 2016 20:33
Show Gist options
  • Save KhalilZaidoun/9ea34dc875e37e6446aeafef8e056681 to your computer and use it in GitHub Desktop.
Save KhalilZaidoun/9ea34dc875e37e6446aeafef8e056681 to your computer and use it in GitHub Desktop.
Run React Native on specific iOS simulator version
//by default
//react-native run-ios
//iPhone 4
react-native run-ios --simulator "iPhone ${1:-4}"
//iPhone 4s
react-native run-ios --simulator "iPhone ${1:-4s}"
//iPhone 5
react-native run-ios --simulator "iPhone ${1:-5}"
//iPhone 5s
react-native run-ios --simulator "iPhone ${1:-5s}"
//iPhone 6
react-native run-ios --simulator "iPhone ${1:-6}"
//iPhone 6 Plus
react-native run-ios --simulator "iPhone ${1:-6 Plus}"
//iPhone 6s
react-native run-ios --simulator "iPhone ${1:-6s}"
//iPhone 6s Plus
react-native run-ios --simulator "iPhone ${1:-6s Plus}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment