From 4ec434926e70e90cdca3e5f3205b834c62859dde Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 22 Mar 2024 13:49:19 +0000 Subject: move auth flows scrollview to loggedin layout --- src/screens/Signup/index.tsx | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'src/screens/Signup/index.tsx') diff --git a/src/screens/Signup/index.tsx b/src/screens/Signup/index.tsx index b84f4d0d7..4211194c7 100644 --- a/src/screens/Signup/index.tsx +++ b/src/screens/Signup/index.tsx @@ -1,5 +1,6 @@ import React from 'react' -import {ScrollView, View} from 'react-native' +import {View} from 'react-native' +import {LayoutAnimationConfig} from 'react-native-reanimated' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -20,7 +21,7 @@ import { import {StepCaptcha} from '#/screens/Signup/StepCaptcha' import {StepHandle} from '#/screens/Signup/StepHandle' import {StepInfo} from '#/screens/Signup/StepInfo' -import {atoms as a, useTheme} from '#/alf' +import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import {Divider} from '#/components/Divider' import {InlineLink} from '#/components/Link' @@ -32,6 +33,7 @@ export function Signup({onPressBack}: {onPressBack: () => void}) { const {screen} = useAnalytics() const [state, dispatch] = React.useReducer(reducer, initialState) const submit = useSubmitSignup({state, dispatch}) + const {gtMobile} = useBreakpoints() const { data: serviceInfo, @@ -125,13 +127,16 @@ export function Signup({onPressBack}: {onPressBack: () => void}) { - - + description={_(msg`We're so excited to have you join us!`)} + scrollable> + + Step {state.activeStep + 1} of{' '} @@ -152,13 +157,15 @@ export function Signup({onPressBack}: {onPressBack: () => void}) { - {state.activeStep === SignupStep.INFO ? ( - - ) : state.activeStep === SignupStep.HANDLE ? ( - - ) : ( - - )} + + {state.activeStep === SignupStep.INFO ? ( + + ) : state.activeStep === SignupStep.HANDLE ? ( + + ) : ( + + )} + @@ -208,7 +215,7 @@ export function Signup({onPressBack}: {onPressBack: () => void}) { - + ) -- cgit 1.4.1