-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/yixuan+william/auth #9
base: main
Are you sure you want to change the base?
Conversation
…InputBox, fixed google login on android
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled and tested locally, lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally on ios and android. Login page looks good but I don't see the landing page (not sure if that's intentional)
Harsh and Joanne ended up deciding to remove the landing page because it makes more sense logistically to start on the login page. |
Tracking Info
Resolves #4
Changes
Main Changes
Button
: button with base styles that can handle page navigation with thehref
prop and/or press events with theonPress
propTouchableCapacity
componentInputbox
: combines input label, input box, error messages, and various password-related components (visibility toggle, forgot password button)label
,placeholder
, anderrorMessage
props, self-explanatory,errorMessage
and validation state should be handled by the parent componentvalue
andonChangeText
props handle state of the inputcontainerStyle
prop passes styles onto the containerView
(containing all the components)labelStyle
prop passes styles onto the labelText
componentstyle
prop passes styles onto theTextInput
componentisPassword
andonForgotPassword
props toggle and define password input functionalitiesTextInput
component (NOT the container)src/lib/auth.ts
src/app/(auth)/login.tsx
UserContext
andUserContextProvider
available insrc/contexts/userContext.ts
src/app/_layout.tsx
onAuthStateChanged
listener is set up in this file - initial call to our API'swhoami
route should probably happen hereAdditional Changes
react-native-svg-transformer
set up to render svg files, sample usage with theMascots
import insrc/app/index.ts
zod
set up for validation, sample usage insrc/app/(auth)/login.tsx
Testing
Confirmation of Change
npm install
, and theandroid
folder may need to be deleted and rebuilt for changes to take affectLanding page
Login page
Login page with errors
Temp home/loading page