Skip to content

Commit 00cc575

Browse files
hamdiwanisTrancever
authored andcommitted
fix: textInput label wrong position in RTL (#721)
1 parent 38b7295 commit 00cc575

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/TextInput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ class TextInput extends React.Component<Props, State> {
472472
translateX: this.state.labeled.interpolate({
473473
inputRange: [0, 1],
474474
outputRange: [
475-
-(1 - MINIMIZED_LABEL_FONT_SIZE / MAXIMIZED_LABEL_FONT_SIZE) *
475+
(I18nManager.isRTL ? 1 : -1) *
476+
(1 - MINIMIZED_LABEL_FONT_SIZE / MAXIMIZED_LABEL_FONT_SIZE) *
476477
(this.state.labelLayout.width / 2),
477478
0,
478479
],

0 commit comments

Comments
 (0)