Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

296
Views
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 answers
Answer question

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 Report

0

You can use /n for break line

<Text>
   Hi{'\n'}
   this is a test message.
</Text>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!