English 中文(简体)
React Native - Running IOS
  • 时间:2024-09-08

React Native - Running IOS


Previous Page Next Page  

If you want to test your app in the IOS simulator, all you need is to open the root folder of your app in terminal and run −

react-native run-ios

The above command will start the simulator and run the app.

We can also specify the device we want to use.

react-native run-ios --simulator "iPhone 5s

After you open the app in simulator, you can press command + D on IOS to open the developers menu. You can check more about this in our debugging chapter.

You can also reload the IOS simulator by pressing command + R.

Advertisements