Skip to content

Instantly share code, notes, and snippets.

@Nembie
Last active October 13, 2023 12:48
Show Gist options
  • Save Nembie/86f24e9bb1f7dc9aa75446309b7c6eb5 to your computer and use it in GitHub Desktop.
Save Nembie/86f24e9bb1f7dc9aa75446309b7c6eb5 to your computer and use it in GitHub Desktop.
Set a default iOS simulator in React Native
  1. Open package.json
  2. Edit (or add) this line
"scripts": {
    ...
    "android": "react-native run-android",
    "ios": "react-native run-ios --simulator=\"iPhone 15 Pro\"", // or other simulator
    ...
},
  1. Save
  2. Run this command instead of react-native run-ios
yarn ios

or

npm ios
  1. Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment