Skip to content

Commit 5686448

Browse files
committed
fix: web rtl
1 parent 43ece4f commit 5686448

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/TextField/filled/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const getFilledTextFieldData = (
7474
// CONSTANTS
7575
// =======================
7676

77-
const { isRTL } = I18nManager;
77+
const { isRTL } = I18nManager.getConstants();
7878

7979
// =======================
8080
// THEME TOKENS

src/components/TextField/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const useTextField = (props: TextFieldProps) => {
6060
// CONSTANTS
6161
// =======================
6262

63-
const { isRTL } = I18nManager;
63+
const { isRTL } = I18nManager.getConstants();
6464
const disabled = props.editable === false || props.status === 'disabled';
6565
const isFloating = isFocused || !!props.value;
6666
const hasAccessory = isRTL ? !!props.EndAccessory : !!props.StartAccessory;

src/components/TextField/outlined/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
// LAYOUT SUPPORT
1313
// ==================
1414

15-
const isRTL = I18nManager.isRTL;
15+
const isRTL = I18nManager.getConstants().isRTL;
1616
const layoutSupportMultiplier = isRTL ? -1 : 1;
1717

1818
// ==================

src/components/TextField/outlined/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const getOutlinedTextFieldData = (
6363
// CONSTANTS
6464
// =======================
6565

66-
const { isRTL } = I18nManager;
66+
const { isRTL } = I18nManager.getConstants();
6767

6868
// =======================
6969
// THEME TOKENS

0 commit comments

Comments
 (0)