Skip to content

Commit 3682bc3

Browse files
committed
PasswordInput: Don't let show/hide button stretch password input's height
The default value for `alignItems` is 'stretch': https://reactnative.dev/docs/0.68/flexbox#align-items
1 parent 4b78875 commit 3682bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/PasswordInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Touchable from './Touchable';
1111

1212
const styles = createStyleSheet({
1313
showPasswordButton: {
14-
justifyContent: 'center',
1514
marginLeft: 8,
1615
},
1716
showPasswordButtonIcon: {
@@ -23,6 +22,7 @@ const styles = createStyleSheet({
2322
},
2423
passwordInputView: {
2524
flexDirection: 'row',
25+
alignItems: 'center',
2626
},
2727
});
2828

0 commit comments

Comments
 (0)