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

50
Views
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
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!