You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/uikit-react-native-foundation/src/components/Text/index.tsx
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,24 @@ import useUIKitTheme from '../../theme/useUIKitTheme';
5
5
importtype{TypoName,UIKitTheme}from'../../types';
6
6
import{isStartsWithRTL}from'./isStartsWithRTL';
7
7
8
+
exportinterfaceRTLTextAlignSupportProps{
9
+
/**
10
+
* If `I18nManager.isRTL` is `true` and this value is enabled, the text will be aligned according to RTL if it starts in an RTL language.
11
+
* In the case of the `Text` component, the alignment value is calculated based on `I18nManager.doLeftAndRightSwapInRTL`.
12
+
* For the `TextInput` component, the alignment value is calculated as a physical alignment, unaffected by `I18nManager.doLeftAndRightSwapInRTL`.
13
+
*/
14
+
supportRTLAlign?: boolean;
15
+
/**
16
+
* If you want to enable `supportRTLAlign` but are using nested `Text` components that are not simple text under the `Text` component, pass the original text here.
0 commit comments