Skip to content

Commit

Permalink
fix: align text to center in multiline TextInput (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
venits authored and Trancever committed Oct 24, 2019
1 parent 44e1d8a commit 03c9bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/TextInput/TextInputFlat.tsx
Expand Up @@ -261,7 +261,7 @@ class TextInputFlat extends React.Component<ChildTextInputProps, {}> {
fontSize,
fontWeight,
color: inputTextColor,
textAlignVertical: multiline && height ? 'top' : 'center',
textAlignVertical: multiline ? 'top' : 'center',
},
],
})}
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextInput/TextInputOutlined.tsx
Expand Up @@ -238,7 +238,7 @@ class TextInputOutlined extends React.Component<ChildTextInputProps, {}> {
fontSize,
fontWeight,
color: inputTextColor,
textAlignVertical: multiline && height ? 'top' : 'center',
textAlignVertical: multiline ? 'top' : 'center',
},
],
} as RenderProps)}
Expand Down

0 comments on commit 03c9bfd

Please sign in to comment.