Sign Up
Purpose
Enable new users to create an account using their email and password or via social media logins.
Overview
- The
Sign Up
screen collects user details such asfull name
,email
,password
, andconfirm password
. - It uses
Formik
for form handling and Yup for validation. - Users can also register via social logins like
Google
,Facebook
, andInstagram
.
Key Components
-
TopBannerContainer
: Displays top banner image. -
ScrollView
: Scrollable content wrapper. -
Formik
: Manages form state and validation. -
Input Fields
:- full_name
- password (with visibility toggle)
- confirm_password (with visibility toggle)
-
ValidationError
: Displays validation errors. -
LanguageChanger
: Allows dynamic language switching. -
MNSingleButton
: Primary submission button. -
Social login buttons
: Triggers sign-up via social media.
User Flow
- User enters details and submits the form.
- Spinner is shown while data is processed.
Upon success
, user is logged in and redirected to the home screen.- Alternatively, user can select a social login.
- Navigation option provided to Sign In screen.
Navigation Links
Sign In
navigates to user Sign.
Loading State
Disables buttons and reduces opacity during sign-in processing to prevent duplicate submissions.