Skip to content

Commit c3620d6

Browse files
author
Hristo Totov
committed
fix: wrap html snippet in code fence in RTL guide
1 parent b094aa2 commit c3620d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/docs/guides/10-rtl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ See [I18nManager](http://reactnative.dev/docs/i18nmanager) docs and [Enabling RT
1414

1515
On the Web, the RTL value is not set globally, unlike native platforms. `I18nManager.getConstants().isRTL` is a no-op on [React Native Web](https://necolas.github.io/react-native-web/). To enable RTL globally, you can specify `dir` attribute on the `html` element:
1616

17+
```html
1718
<html dir="rtl">
1819
<!-- App content -->
1920
</html>
21+
```
2022

2123
Then, let `react-native-paper` know about it by using the `direction` prop on `PaperProvider` or the `LocaleProvider` component to match the writing direction in your app.
2224

0 commit comments

Comments
 (0)