mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
591 B
591 B
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.