Skip to content

Commit a837c18

Browse files
committed
fix(textinput): updated the rtl.md doc
1 parent 35e949a commit a837c18

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎docs/6.x/docs/guides/rtl.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Then, let `react-native-paper` know about it by using the `direction` prop on `P
2626
The `direction` prop informs React Native Paper about the text direction in the app i.e. it doesn't change the text direction by itself. If you intend to support RTL languages, it's important to set this prop to the correct value that's configured in the app. If it doesn't match the actual text direction, the layout might be incorrect.
2727
:::
2828

29+
:::caution
30+
On the Web, set `dir="rtl"` on the `html` element. Setting it on a nested container, such as `<View dir="rtl">`, isn't supported. React Native Web takes the direction from that container instead of the page, so the layout may be incorrect. For example, in `TextInput` the label can stay on the left and overlap the end accessory, and the leading accessory can sit against the edge of the field.
31+
:::
32+
2933
## Setting direction for the whole app
3034

3135
Pass the `direction` prop to `PaperProvider`. Defaults to `'rtl'` when `I18nManager.getConstants().isRTL` returns `true`, otherwise `'ltr'`.

0 commit comments

Comments
 (0)