Run React Native App on a Specific Device or Simulator

To run a React Native App we have to use React Native CLI. I am going to share few commands today which will help you a lot to run a React Native App on a specific device or a specific simulator.

Specifying a Device while Running React Native App

To specify a particular connected device we need to use –device flag with the run command, as shown below.

react-native run-ios --device="Asad’s iPhone"

Specifying a Simulator while Running React Native App

To specify a particular simulator we need to use –simulator flag with the run command, as shown below.

react-native run-ios --simulator="iPhone 11 Pro Max"

Command to Check List of All Available Simulators & Devices

To see the list of all available simulators and devices you can run the following command.

xcrun simctl list devices

This command will prints the list of devices as shown in the following screenshot.

Run React Native App on a Specific Device

Few Useful Simulators

react-native run-ios --simulator="iPhone 8"
react-native run-ios --simulator="iPhone 8 Plus"
react-native run-ios --simulator="iPhone X"
react-native run-ios --simulator="iPhone 11"
react-native run-ios --simulator="iPhone 11 Pro"
react-native run-ios --simulator="iPhone 11 Pro Max"
react-native run-ios --simulator="iPad Pro (9.7-inch)"
react-native run-ios --simulator="iPad (7th generation)"
react-native run-ios --simulator="iPad Pro (11-inch)"
react-native run-ios --simulator="iPad Pro (12.9-inch)"
react-native run-ios --simulator="iPad Air (3rd generation)"

That’s it. This is how to run your React Native App on a specific device or a simulator.

If you have any questions, feel free to ask in the comments section below.

Next:

1. Hideable View in React Native – Show/Hide View & It’s Content

2. Preload Images in React Native – Android & IOS

Please share this post:
Native Mobile Application Developer (Android + IOS) having experience in Java, Swift, Kotlin, Objective C, Unity, C#, C/C++, NODE JS & PHP.

2 thoughts on “Run React Native App on a Specific Device or Simulator

Ask a Question

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

%d bloggers like this: