See Getting Started to install prerequisites (npm, node etc).
$ npm install -g react-native-cli
$ npm install
It is suggested to install watchman, but it
is not required. Installing watchman speeds up the development process by allowing npm start
to
bundle the app faster (spends less time looking for changed files, faster at traversing directory
trees).
Watchman will be automatically used once installed. More info on Watchman here.
$ npm start
Open Android emulator and run command: (Or connect real device via USB)
$ npm run android
Run command to open iOS simulator and run app:
$ npm run ios
Or open ios/sfusat.xcodeproj
file with XCode:
$ npm run ios-open
- Shake the device and...
- Enable dev mode
- Enable live reload
- Enable hot reloading
- Setup debug server host & port (use wifi to send bundles to device so device doesn't need to be plugged in)