In MAC computer Things are a bit different than Windows PC because when we develop apps in MAC using Xcode for iOS devices for react native than it’ll automatically starts the highest version iOS simulator. Which sometimes developer dose not required. There are almost 12 + iOS simulators devices available. So in Today’s tutorial we would learn about changing default iOS simulator device for react native and Run React Native Project on Specific iOS Simulator Device in MAC Example Tutorial.
Contents in this project Run React Native Project on Specific iOS Simulator Device in MAC:
1. In React Native we would use react-native run-ios --simulator="Simulator Name" command to run react native project in specific iOS emulator device. In above command we have to pass the simulator name which shows at top of simulator. So first start your iOS simulator in MAC. In my case my iOS emulator device name is iPhone 5s with 12.1 version.