Skip to content

Commit 60afd02

Browse files
luissmgsatya164
authored andcommitted
fix: TextInput align top with multiline (#651)
1 parent 50cd9f6 commit 60afd02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/TextInput.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ class TextInput extends React.Component<Props, State> {
383383
style,
384384
theme,
385385
render,
386+
multiline,
386387
...rest
387388
} = this.props;
388389

@@ -629,6 +630,7 @@ class TextInput extends React.Component<Props, State> {
629630
onFocus: this._handleFocus,
630631
onBlur: this._handleBlur,
631632
underlineColorAndroid: 'transparent',
633+
multiline,
632634
style: [
633635
styles.input,
634636
mode === 'outlined'
@@ -639,6 +641,7 @@ class TextInput extends React.Component<Props, State> {
639641
{
640642
color: inputTextColor,
641643
fontFamily,
644+
textAlignVertical: multiline ? 'top' : 'center',
642645
},
643646
],
644647
})}

0 commit comments

Comments
 (0)