mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-24 09:13:53 +08:00
26 lines
591 B
Markdown
26 lines
591 B
Markdown
# I18nManager
|
|
|
|
Control and set the layout and writing direction of the application.
|
|
|
|
## Properties
|
|
|
|
**isRTL**: bool = false
|
|
|
|
Whether the application is currently in RTL mode.
|
|
|
|
## Methods
|
|
|
|
static **allowRTL**(allowRTL: bool)
|
|
|
|
Allow the application to display in RTL mode.
|
|
|
|
static **forceRTL**(forceRTL: bool)
|
|
|
|
Force the application to display in RTL mode.
|
|
|
|
static **setPreferredLanguageRTL**(isRTL: bool)
|
|
|
|
Set the application's preferred writing direction to RTL. You will need to
|
|
determine the user's preferred locale server-side (from HTTP headers) and
|
|
decide whether it's an RTL language.
|