This project is an opinionated base template for react-native applications, and it's configured for working on a Mac. It includes most of the infrastructure needed for a working app, including:
- debugging - react-native-debugger ✅
- lint - ESLint ✅
- Prettier ✅
- static type checker - flow ✅
- testing - Jest & Detox ❌
- JS logging - logentries ❌
- Error logs - bugsnag ❌
- BI logging - mixpanel ❌
- HTTP package - axios ✅
- device information - device-info & version-number ❌
- absolute imports - root-slash-import ✅
- icons - react-native-vector-icons ❌
- navigation - react-navigation ❌
- local storage - layer of abstraction above React-Native AsyncStorage for a better API and to promisify it ✅
We use VSCode as our IDE. While we use a decent range of extensions, the following are considered required for working with this repository:
- ESLint
- Prettier - Code formatter
- vscode-flow-ide
If you're using a different IDE you'll need to configure your own extensions to replace the mentioned above.
After cloning the project you need to install react-native-debugger with Homebrew Cask cask by running:
$ brew update && brew cask install react-native-debugger
Install all dependencies by running:
npm i
Install flow library definitions using flow-typed:
flow-typed install