Launch React Native app without starting Xcode?

Is it possible to create / run an iOS application from the command line (built completely with React Native )? PhoneGap has a nice ios-sim utility for this, but I'm out of luck.

+8
javascript ios xcode cordova react-native
source share
2 answers

If you create a project once using Xcode, you can close it, run npm start in the root of your project (to start the packer), run Simulator (possibly using ios-sim). Since you built it once in Xcode, the application will be installed in the simulator so you can run it, and the whole CMD + R update process will work.

+5
source share

Start the server using

 $ npm start 

Build / run the app in the ios simulator:

 $ react-native run-ios 
+2
source share

All Articles