DMS mobile application for thesis
From the mobileClient
directory, run npm install
- This installs the various modules needed into a
node_modules
directory.
iOS
react-native run-ios
runs the iOS build in the default simulator.react-native run-ios --simulator="MySimulatorName"
will run the iOS build using the simulator you specify.- More details on specifying simulators
- List of available simulators:
xcrun simctl list
- Example to create your own named simulator for an iPad Air 2 running iOS 11.3:
xcrun simctl create MySimulatorName com.apple.CoreSimulator.SimDeviceType.iPad-Air-2 com.apple.CoreSimulator.SimRuntime.iOS-11-3
- โ-d in the iOS simulator brings up the React Native debug menu.
Android
- Run an AVD (Android Virtual Device) emulator. This could be started via Android Studio (Tools -> AVD Manager) or the command line
react-native run-android
runs the Android build- โ-m in the Android emulator brings up the React Native debug menu.
For running on a physical iOS/Android device, take a look at the docs for the subtleties involved.
React Native has some great debugging documentation, it's well worth reading through. A common setup for us is to have the standalone React Developer Tools running and the simulator with Live Reload and Hot Reloading turned on.