From ef9c1cd7ca0a43804fac5d65b74e83c39008b0eb Mon Sep 17 00:00:00 2001 From: Maciej Dobosz Date: Wed, 21 Feb 2024 18:55:07 +0100 Subject: [PATCH] Keyboard avoiding view for form --- src/languages/en.ts | 3 ++- src/pages/OnboardingPersonalDetails.tsx | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index d86b9d01c679..4ade1b2ae906 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -1186,7 +1186,8 @@ export default { notYou: ({user}: NotYouParams) => `Not ${user}?`, }, onboarding: { - welcome: "Welcome! What's your name?", + welcome: 'Welcome!', + whatsYourName: "What's your name?", }, personalDetails: { error: { diff --git a/src/pages/OnboardingPersonalDetails.tsx b/src/pages/OnboardingPersonalDetails.tsx index b28fa7f6b1a2..45e2a6c1dd7f 100644 --- a/src/pages/OnboardingPersonalDetails.tsx +++ b/src/pages/OnboardingPersonalDetails.tsx @@ -3,6 +3,7 @@ import {View} from 'react-native'; import FormProvider from '@components/Form/FormProvider'; import InputWrapper from '@components/Form/InputWrapper'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; +import KeyboardAvoidingView from '@components/KeyboardAvoidingView'; import Text from '@components/Text'; import TextInput from '@components/TextInput'; import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentUserPersonalDetails'; @@ -32,7 +33,7 @@ function OnboardingPersonalDetails({currentUserPersonalDetails}: OnboardingPerso }, []); return ( - + - - {translate('onboarding.welcome')} + + + {translate('onboarding.welcome')} + {translate('onboarding.whatsYourName')} + - + ); }