This project mainly started for an interview, and I tried to keep it as simnple as possible to avoid any confusion when giving the presentation. The time to complete this was few hours.
- Node.js > 12 and npm (Recommended: Use nvm)
- Watchman
- Xcode 13
- Cocoapods
- JDK > 11
- Android Studio and Android SDK
- axios for networking.
- react query for data-fetching.
Note that you need to create a .env
file in the project directory and add API_BASE=https://api.reddit.com
to make it work.
-
Go to your project's root folder and run
yarn
. -
run
npx pod-install
-
run
yarn start
-
Run the app by opening the ios and folder in xcode and Android sStudio. OR run
yarn ios
oryarn android
to start your application!
This is just simple app to show sub reddit posts, but some functionalities are not feasible because the endpoints are not completely public.
-src
: This folder is the main container of all the code inside your application.
-components
: Folder to store any common component that you use through your app.
-pages
: Folder that contains all your application screens/features.
-App.tsx
: Main component that starts your whole app.
-index.js
: Entry point of your application as per React-Native standards.