Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

445
Visualizações
keyboard is hiding the textinput . React Native (Expo CLI)

keyboard hides the some text input , I'm trying to use keyboardAvoidingView. it has no effect here. ?

this is my code

  • SEE THE CODE BETWEEN *****

IF I wrap scroll view with keyboardavoidingView or I wrap KeyboardAvoidingView with scroll.. it is not changing anything here, I have tried both

//import statments 

    return (

        <View style={style.MainContainer}>

            <View style={style.chooseDpContainer}>

  <TouchableOpacity onPress={openImagePickerAsync} style={style.chooseDpContainer}>
{(!ImageUrl)?(<><Avatar.Icon size={70} icon="camera-plus-outline" style={{marginEnd:10}} />
<Text>Choose a cool  Dp for your Pet</Text></>):
 (<><Avatar.Image size={70} source={{uri:ImageUrl}} style={{marginEnd:10}}/>
 
  <Text>Choose another Image?</Text>
  <Button mode="text" icon="delete" style={{fontSize:40}}  onPress={()=>{
      setImageUrl('')
  }}>Remove</Button>
  </>
 )}
  </TouchableOpacity>
  </View>
  <View style={style.divider} ></View>
  <Text style={{marginBottom:10}}>Your Pet Details</Text>

{/* KEYBOARD HIDES INPUT, PLEASE  REVIEW THIS CODE*/}
{/* *************************************************** */}

 <KeyboardAvoidingView style={{width:'100%'}}
 behavior={Platform.OS==="ios"?'padding':"height"}>
  <ScrollView style={{width:'100%'}}>
    {/* //  behavior='position'> */}
  <View style={style.Input}><TextInput label="Name"/></View>
  <View style={style.Input}><TextInput label="Age"/></View>
  <View style={style.Input}><TextInput label="Breed"/></View>
  <View style={style.Input}><TextInput label="Gender"/></View>
 
  </ScrollView>
  </KeyboardAvoidingView>

    {/* KEYBOARD HIDES INPUT, THANKS*/}  
{/* *************************************************** */}

        </View>
    )
}

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda