React-Native Patient-facing application (currently working towards prototype)
- Follow environment instructions on https://reactnative.dev/docs/environment-setup
- Make sure your node version >= 10
- Install yarn package manager
- Pull down repository
- Run
yarn
- Run
npx react-native link
- Copy
.example.env
to.env
and updateAPI_URL
if using the live API - Note: when working with the live API locally (i.e. during development) you will need to update API_URL with your local IP address.
- Start android emulator
- In project directory, run
npx react-native run-android
- Go to http://localhost:8081/debugger-ui/ for console logs
npx react-devtools
for UI inspection
To lint the code locally, simply run yarn lint
To fix lint errors, simply run yarn fixlint
To test the code locally, simply run yarn test