React Native Reddit listing demo app 🚀
Builded with: TypeScript, React Native, Axios, Testing Library and Reddit API.
Grabacion.de.pantalla.2022-02-24.a.las.0.52.54.mov
- Create a file called
local.properties
atRNRedditApp/android/
with the following line:
sdk.dir=C:\\Users\\UserName\\AppData\\Local\\Android\\sdk
Replace UserName with your pc user name . Also make sure the folder is sdk or Sdk.
sdk.dir = /Users/USERNAME/Library/Android/sdk
Where USERNAME is your MacOS username.
sdk.dir = /home/USERNAME/Android/Sdk
Where USERNAME is your linux username (Linux paths are case-sensitive: make sure the case of S
in Sdk
matches).
-
Run
yarn
-
Run
yarn start
-
Run
yarn android
-
Run
yarn
-
Run
cd ios && pod install && cd ..
-
Run
yarn start
-
Run
yarn ios
In the project directory, you can run:
-
yarn android
: Build and install de app in Android (debug mode). -
yarn ios
: Build and install de app in iOS (debug mode). -
yarn start
: Starts the metro bundler. -
yarn test
: Run jest tests.
-
Subreddit can be easily modified from
src/utils/contants
inSUBREDDIT
constant. This will affect the whole app, including API calls and header title (default subreddit isr/pics
). -
The app is available for
iOS >= 12
andAndroid API >= 21
. -
The project is using Prettier ESlint as default formatter.