From a5a3a145dd0a7f6d134cb9dc9f7f9b21c6161cdc Mon Sep 17 00:00:00 2001 From: Andi Firwansyah Date: Sun, 4 Dec 2022 15:53:50 +0700 Subject: [PATCH] [FIX] Keyboard Avoiding View --- src/scenes/Login/index.js | 131 +++++++++--------- src/scenes/Login/styles.js | 6 +- .../Products/ProductList/AddProduct/index.js | 104 ++++++++------ .../BusinessSummary/index.js | 2 +- 4 files changed, 131 insertions(+), 112 deletions(-) diff --git a/src/scenes/Login/index.js b/src/scenes/Login/index.js index 1a84463..9be02f1 100644 --- a/src/scenes/Login/index.js +++ b/src/scenes/Login/index.js @@ -6,6 +6,8 @@ import { TextInput, ActivityIndicator, Image, + KeyboardAvoidingView, + Platform, } from 'react-native'; import { Container, @@ -57,71 +59,76 @@ const Login = ({route, navigation}) => { style={styles.translateButtonImage} /> - - - - {t('welcome_text')} - - Through a wide range of caterers & brand partners, personalized - services - - - - - - - {t('phone_input')} * - - - - 🇮🇩 +62 - - - setPhone(val)} - placeholder="Nomor HP" - keyboardType="number-pad" - autoFocus={true} - /> - setPhone('')}> - - - - - {error?.phone?.message && ( - {error.phone.message} - )} - - - {t('phone_issue')} + + + + + {t('welcome_text')} + + Through a wide range of caterers & brand partners, personalized + services - + - -