-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
This appears to be the same issue reported in #14232.
When lineHeight is added to multiline TextInput's the height of the TextInput is initially effected however this disappears on first input at which point this appears to be ignored.
import * as React from 'react';
import { View, TextInput } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View>
<TextInput
multiline
style={{
margin: 30,
lineHeight: 100,
borderColor: 'black',
borderWidth: 1,
}}
/>
</View>
);
}
}
React Native version:
expo SDK 33.0 => RN 0.59.8
Steps To Reproduce
1.Render TextInput with multiline=true
and style={ lineHeight: <Number> }
Describe what you expected to happen:
lineHeight
should be applied to TextInput contents effectively allowing space to be applied between lines of text.
Snack, code example, or link to a repository:
https://snack.expo.io/@njdancer/b91e88
holden-caulfield, ntharim, likern, mysport12 and jaridmargolin
Metadata
Metadata
Assignees
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.