In this exercise, we will create a mobile version for the Github Profiler application.
- Create the
.envfile that will hold your API token - Create a directory called
screensand create the needed components - Bring the implementation code from the web app and adapt it to React Native
- Create a directory called
reduxand create the store with the needed actions and reducers forprofileandreposslices - Create a navigation between the 2 screens (profile / repos)
- Create another screen that will hold the organisations of the user
- Create another tab for the new screen
- Implement the needed redux logic to fetch the organisationsList from github API
In this exercise, we will create a mobile version for the Github Profiler application.
- Create the
.envfile that will hold your API token - Create a directory called
screensand create the needed components - Bring the implementation code from the web app and adapt it to React Native
- Create a directory called
reduxand create the store with the needed actions and reducers forprofileandreposslices - Create a navigation between the 2 screens (profile / repos)
- Create another screen that will hold the organisations of the user
- Create another tab for the new screen
- Implement the needed redux logic to fetch the organisationsList from github API
- Pull the latest changes from Let me in Repository
- Start the API server
- Create a
LoginScreen under screens with 2 inputs (email + password) and a submit button - Create a new file called
Navigator.jsand move everything related to navigation to that component - Add a Stack Navigator that navigates between Login and Signup
- Create a new slice in Redux called auth. Initial state for the reducer should be
{
isLoggedIn: false,
token: null
}
- Create a new action under
auth.actionsnamedloginthat should a request to/api/auth/login - Handle the action in the reducer to save the token and set
isLoggedIntotrue - Install
react-native-encrypted-storagewith npm. This will act as our local storage - Use
EncryptedStorageto persist the value ofisLoggedInandtoken