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

294
Visualizações
React Native Multi Line Text Indentation

In React Native, the line breaks automatically in the Text component due to the length of the text. How do I keep the desired indentation after an automatic line break?

Text Indentation on React Native

This question answers how to create indentation using the text component, but does not address multi line indentation like user3191334 asked about.

For example, if we used single line indentation

<Text>{'\t'}Hello, my name is John.</Text>

The output on a mobile screen could be:

     Hello, my name is 

 John. 

I would like to make it so the output is:

     Hello, my name is

     John.
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

add paddingLeft property in the text style. Here is an example

<Text style={{paddingLeft:100}}>this is just and example </Text>
about 4 years ago · Juan Pablo Isaza Relatório

0

You can use /n for break line

<Text>
   Hi{'\n'}
   this is a test message.
</Text>
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