numberOfLines prop has no effect on multiline TextInput ?
See original GitHub issuePlease 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:
- Created 3 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Create an expo snack that reproduces this issue.
@hannojg actually I don’t remember, it’s been a while.