This is a basic exploration of React Native with Redux and TypeScript. Currently only Android is supported.
Clone the project and run yarn
to pull in the dependencies.
yarn lint
runs files through eslint
, tslint
, tsc
, and prettier
for
thorough linting and type-checking.
yarn test
executes the Jest test suite, and can be used with --watch
to
re-run relevant tests when files are changed.
To use the app on an Android emulator or device, install the React Native build
tools
(follow instructions for "Building Projects with Native Code") and run
react-native run-android
. This will:
- Compile the app.
- Load the app onto the device/virtual device.
- Get the device to run the app.
- Run a server to recompile the app whenever files are changed (as well as push those changes to the app, if the appropriate setting in the app is enabled).
Or, save yourself the headache and use mayhewluke/react-native-docker for easy, almost no-configuration access to a React Native docker image.
This app uses firebase as a backend, so it needs to be provided with credentials
for firebase. The app will look for the credentials in
/path/to/project/firebaseConfig.json
.