* Remove the keyboardavoidingview in account creation (close #2333) * Smaller pad on desktop/tabletzio/stable
parent
7634b581dd
commit
b9fc152749
|
@ -1,7 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
KeyboardAvoidingView,
|
|
||||||
ScrollView,
|
ScrollView,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
|
@ -28,6 +27,7 @@ import {IS_PROD} from '#/lib/constants'
|
||||||
import {Step1} from './Step1'
|
import {Step1} from './Step1'
|
||||||
import {Step2} from './Step2'
|
import {Step2} from './Step2'
|
||||||
import {Step3} from './Step3'
|
import {Step3} from './Step3'
|
||||||
|
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
|
||||||
|
|
||||||
export function CreateAccount({onPressBack}: {onPressBack: () => void}) {
|
export function CreateAccount({onPressBack}: {onPressBack: () => void}) {
|
||||||
const {screen} = useAnalytics()
|
const {screen} = useAnalytics()
|
||||||
|
@ -38,6 +38,7 @@ export function CreateAccount({onPressBack}: {onPressBack: () => void}) {
|
||||||
const {createAccount} = useSessionApi()
|
const {createAccount} = useSessionApi()
|
||||||
const {mutate: setBirthDate} = usePreferencesSetBirthDateMutation()
|
const {mutate: setBirthDate} = usePreferencesSetBirthDateMutation()
|
||||||
const {mutate: setSavedFeeds} = useSetSaveFeedsMutation()
|
const {mutate: setSavedFeeds} = useSetSaveFeedsMutation()
|
||||||
|
const {isTabletOrDesktop} = useWebMediaQueries()
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
screen('CreateAccount')
|
screen('CreateAccount')
|
||||||
|
@ -120,7 +121,6 @@ export function CreateAccount({onPressBack}: {onPressBack: () => void}) {
|
||||||
title={_(msg`Create Account`)}
|
title={_(msg`Create Account`)}
|
||||||
description={_(msg`We're so excited to have you join us!`)}>
|
description={_(msg`We're so excited to have you join us!`)}>
|
||||||
<ScrollView testID="createAccount" style={pal.view}>
|
<ScrollView testID="createAccount" style={pal.view}>
|
||||||
<KeyboardAvoidingView behavior="padding">
|
|
||||||
<View style={styles.stepContainer}>
|
<View style={styles.stepContainer}>
|
||||||
{uiState.step === 1 && (
|
{uiState.step === 1 && (
|
||||||
<Step1 uiState={uiState} uiDispatch={uiDispatch} />
|
<Step1 uiState={uiState} uiDispatch={uiDispatch} />
|
||||||
|
@ -176,8 +176,7 @@ export function CreateAccount({onPressBack}: {onPressBack: () => void}) {
|
||||||
</>
|
</>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
</View>
|
</View>
|
||||||
<View style={s.footerSpacer} />
|
<View style={{height: isTabletOrDesktop ? 50 : 400}} />
|
||||||
</KeyboardAvoidingView>
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</LoggedOutLayout>
|
</LoggedOutLayout>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue