- Open
package.json
- Edit (or add) this line
"scripts": {
...
"android": "react-native run-android",
"ios": "react-native run-ios --simulator=\"iPhone 15 Pro\"", // or other simulator
...
},
- Save
- Run this command instead of
react-native run-ios
yarn ios
or
npm ios
- Enjoy!