Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

293
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

0

You can use /n for break line

<Text>
   Hi{'\n'}
   this is a test message.
</Text>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda