How to make ListItem textInput fill all available space?
See original GitHub issueHello! ListItem textInput maximum width is only half of item width:
<ListItem
title='Address'
textInput={true}
textInputValue={this.state.address}
textInputOnChangeText={address => this.setState({address})}
hideChevron={true}
/>
How to make textInput width fill all available space like:
and truncate text only when it begin overflowing left title?
P.S.: Sorry for “adress” word) And for my English
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Style input element to fill remaining width of its container
Here is a simple and clean solution without using JavaScript or table layout hacks. It is similar to this answer: Input text auto...
Read more >fit-content - CSS: Cascading Style Sheets - MDN Web Docs
The fit-content behaves as fit-content(stretch). In practice this means that the box will use the available space, but never more than ...
Read more >Filling space | React Material-UI Cookbook
Inside each of these Paper components, you have three Chip components, which are nested grid items. Here's what the code looks like: import...
Read more >C38: Using CSS width, max-width and flexbox to fit labels ...
Define the width and max-width property for labels and inputs so they enlarge or shrink in the available space and respond to zoom...
Read more >How to make a div fill a remaining horizontal space using ...
The width property is used to fill a div remaining horizontal space using CSS. By setting the width to 100% it takes the...
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 Free
Top 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
Hey @evilandfox, you’re right, this is not well handled by the ListItem. Actually, the title has a
flex: 1
, so does theTextInput
, so they are both taking half of the space. That shouldn’t be the case if there is aTextInput
(The title shouldn’t have aflex: 1
in this case). 😕I think you can use this dirty fix as a workaround for now:
This will give you this result:
@iRoachie Thanks! #1272