question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numberOfLines prop has no effect on multiline TextInput ?

See original GitHub issue

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

when providing a numberOfLines prop to multiline TextInput it has no effect.

React Native version:

Run react-native info in your terminal and copy the results here.

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.


<TextInput multiLine scrollEnabled numberOfLines={4} />

Expected Results

TextInput should not exceed 4 lines.

Snack, code example, screenshot, or link to a repository:


<TextInput multiLine scrollEnabled numberOfLines={4} />

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ravirajn22commented, Dec 16, 2020

Create an expo snack that reproduces this issue.

0reactions
a-eidcommented, Dec 7, 2022

@hannojg actually I don’t remember, it’s been a while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Am I misunderstanding React Native's TextInput multiline and ...
I assumed that using TextInput's multiline and numberOfLines properties like this would work, but alas when I reach row 5, the textBox just ......
Read more >
TextInput - React Native Archive
A foundational component for inputting text into the app via a keyboard. Props provide configurability for several features, such as auto-correction, ...
Read more >
React Native Text Input - Javatpoint
The multiline props provide facility to input multiple lines of text. Some props of TextInput are only compatible with multiline, for example, multiline={true/ ......
Read more >
How to Use a Multiline Text Area in ReactJS | Pluralsight
It's different from a normal text input, which allows only single-line input. A good example of a use case for textarea is an...
Read more >
Form Textarea | Components - BootstrapVue
Create multi-line text inputs with support for auto height sizing, ... The no-auto-shrink props has no effect if max-rows is not set or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found