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

138
Visualizações
Textipunt on the bottom doesn't avoid keyboard on iOS but on android does

I plan having that textinput on the bottom, and i want it to avoid the keyboard. On Android it avoids, but on iOS it doesn't, even though I'm using the <KeyboardAvoidingView>.

I'm placing it on the bottom with absolute position.
By the way, I'm using expo-cli

This is my return

return (

  <KeyboardAvoidingView 
    behavior={Platform.OS === "ios" ? "positionx" : false} 
    style={{ backgroundColor: "#fff", bottom: 0, position: "absolute", flex: 1 }}
  >

    <SafeAreaView style={styles.commentView}>
      <TextInput
         style={styles.commentInput}
         placeholder='Comentário'
      />
      <TouchableOpacity>
        <Text style={{ color: "#F5A962" }}>Publicar</Text>
      </TouchableOpacity>
    </SafeAreaView>

  </KeyboardAvoidingView>
)

This is my stylesheet

commentInput: {
  height: 40,
  width: "80%",
  borderWidth: 1,
  borderRadius: 5,
  borderColor: "black",
  paddingStart: 10,
  marginEnd: "3.5%",
  backgroundColor: "#eee"
},
commentView: {
  flexDirection: "row",
  alignItems: "center",
  justifyContent: "center",
  backgroundColor: "#fff",
}

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Yes, you can not solve it with the above code. You always will see the covered issue by the keyboard. it depends on the layout. If you are going to solve this problem, please feel free to create a google meeting(reactnativeseniordev@gmail.com). I will help your problem via a calling.

about 4 years ago · Juan Pablo Isaza Relatório
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