Skip to content
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

[Onboarding] Create OnboardLayout component #13

Open
CassioMG opened this issue Mar 4, 2025 · 0 comments
Open

[Onboarding] Create OnboardLayout component #13

CassioMG opened this issue Mar 4, 2025 · 0 comments

Comments

@CassioMG
Copy link
Contributor

CassioMG commented Mar 4, 2025

This task is intended to create a base OnboardLayout component which should be reused in all Onboarding screens.

We can check on Figma designs (image below) that all Onboarding screens have the below consistent similarities:

  • Background color (fixed)
  • Screen padding (fixed)
  • Avatar on top left corner with custom icon
  • Display title with custom copy
  • Continue/Submit button with custom title
  • (optional) Footnote custom copy
  • (optional) Back/Cancel button
Image

The OnboardLayout component interface should comply to those UI properties. It should also implement the KeyboardAvoidingView (or some other applicable solution) so that the content reacts accordingly when the keyboard shows up.

Suggested interface:

<OnboardLayout
     icon={<Icon.PasscodeLock />}
     title="Choose a Password"
     submitButtonTitle="Continue"
     onSubmit={goToNextScreen}
     footnote="We cannot recover your password for you. Make sure you keep this in a safe place."
     cancelButtonTitle="Go back"
     onCancel={goToPreviousScreen}
>
     {children}
<OnboardLayout />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant