Main Components
- App
- Login
- OrderDetail
App
- Location: The UI can be found under
src/App.js
- Working: configures Apollo, Push Notification, Authentication, Native Base, Fonts, and Navigation.
- Result: Depending on whether the user has authenticated or not, everything is prepared to load the next view. The tutorial screen will appear initially if the user has not authenticated; else, the menu screen will appear.
Login
- Location: The UI can be found under
src/screens/Login/Login.js
Its mutation can be found undersrc/apollo/server.js
with constantlogin
- Working: Logins User using Google, Facebook or Manual Registration. A separate component for ForgotPassword is also present its component can be found
src/components/ForgotPassword
Its mutation can be found undersrc/apollo/server.js
with constantforgotPassword
- Result: User logs in after verification. When a user uses forgotPassword, an email containing a password-reset link is given to him.
OrderDetail
- Location: The UI can be found under
src/screens/OrderDetail/OrderDetail.js
It has Apollo constants oforderItem
its of type fragment located insrc/apollo/client.js
- Working: It shows OrderDetail to the rider where the status of the order can be changed by the rider.