Skip to content

Commit 3ac1e49

Browse files
M-i-k-e-lethanshar
andauthored
TextField - fix text alignment in RTL (#1445)
Co-authored-by: Ethan Sharabi <[email protected]>
1 parent 67f19cc commit 3ac1e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/textField/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ function createStyles({centered, multiline}, rightItemTopPadding = 0) {
769769
},
770770
input: {
771771
flexGrow: 1,
772-
textAlign: centered ? 'center' : undefined,
772+
textAlign: centered ? 'center' : Constants.isRTL ? 'right' : 'left',
773773
backgroundColor: 'transparent',
774774
// marginBottom: Constants.isIOS ? 10 : 5,
775775
padding: 0, // for Android
@@ -800,7 +800,7 @@ function createStyles({centered, multiline}, rightItemTopPadding = 0) {
800800
},
801801
errorMessage: {
802802
color: Colors.red30,
803-
textAlign: centered ? 'center' : undefined
803+
textAlign: centered ? 'center' : 'left'
804804
},
805805
topLabel: {
806806
marginBottom: Constants.isIOS ? (multiline ? 1 : 5) : 7

0 commit comments

Comments
 (0)