This package contains the mobile client for Field. The app is developed in React Native and the Expo CLI.
Use the following commands to run the app for development in the browser (in the repository root):
$ npm run bootstrap
$ cd core
$ npm run build
$ cd ../mobile
$ npm install --global expo-cli
$ npm start
First run
$ npm start
to start expo cli. From here you can open the app on your mobile device by scanning displayed QR code. Or you can run the app on virtual devices (using Xcode or Android Studio simulators)
- Download React Native Tools extension.
- Launch "Debug in Exponent"
- Scan QR code on your real device
- Enable Remote Debugging on your device
- Download React Native Debugger
- Open React Native Debugger and press Cmd + T to open new tap
- Select port 19001
- Start expo app with expo start or npm start
- Open App on simulator or device and enable remote debugging
- React Native Debugger should connect to your application
The source files to set the brakpoints are quite hidden in the React Native Debugger application. You can find them here:
Sources -> RNDebuggerWorker.js -> 127.0.0.1:9001
After bootstrapping the app use the following command to run the tests:
$ npm test