To develop locally, expo-cli is necessary.
- Install all necessary packages with
yarn install
ornpm install
. - Execute
npm start
oryarn start
to start the local development server of Expo CLI. - You can also run platform specific server by running either
yarn ios
oryarn android
.
- bootstrapped using expo-cli
- axios is used to create service to call Reddit API - it's easy to extend and catches a lot of errors that native fetch does not
- moment library is used for time (of post creation) formatting
- numbro library is used for number formatting (e.g. post score and number of comments)
- rendering errors are caught using ErrorBoundary HOC
- network errors are caught and displayed using dropdown alert library
- pull to refresh and infinite scroll are implemented using react native's components and APIs (FlatList implements it)
- ESLint is used as a source code styling guide
Download already built Android app. -> Link
Design was inspired by official Reddit Android app.
MIT