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

51
Visualizações
react-native texinput goes multiline in iOS

The below is my TextInput code `

<TextInput

      style={{
        flex: 1,
        height: '100%',
        textAlign: I18nManager.isRTL ? 'right' : 'left',
        color: colors.text,
        paddingTop: 5,
        paddingBottom: 5,
        paddingLeft: 5,
        justifyContent: 'flex-start',
        fontFamily: 'Montserrat-Regular',
      }}
      numberOfLines={1}

      multiline={false}
      returnKeyType={props.hasNext != undefined ? 'next' : 'done'}
      onSubmitEditing={
        props.onSubmitEditing != undefined ? props.onSubmitEditing : null
      }
      placeholderTextColor={success ? BaseColor.grayColor : 'red'}
      selectionColor={colors.primary}
    />

`

in android the prop numberOfLines is working correctly but in iOS its not.

react-native :: 0.64.0

while checking the docs saw its a android only feature since 0.64.0. while inputing text it looks like this in iOS

enter image description here

but when it loose its focus it becomes like this

enter image description here

Does anybody have any idea about this and to make this appear like single line.

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