mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-18 12:12:15 +08:00
Implement gating support for direction-aware API changes
Reviewed By: achen1 Differential Revision: D6045083 fbshipit-source-id: 857a43029ad88d2324ec77145a1e30d92b5e8fae
This commit is contained in:
committed by
Facebook Github Bot
parent
f7888310d4
commit
98547d4bcf
@@ -14,14 +14,18 @@
|
||||
|
||||
type I18nManagerStatus = {
|
||||
isRTL: boolean,
|
||||
doesRTLFlipLeftAndRightStyles: boolean,
|
||||
allowRTL: (allowRTL: boolean) => {},
|
||||
forceRTL: (forceRTL: boolean) => {},
|
||||
makeRTLFlipLeftAndRightStyles: (flipStyles: boolean) => {},
|
||||
};
|
||||
|
||||
const I18nManager: I18nManagerStatus = require('NativeModules').I18nManager || {
|
||||
isRTL: false,
|
||||
doesRTLFlipLeftAndRightStyles: true,
|
||||
allowRTL: () => {},
|
||||
forceRTL: () => {},
|
||||
makeRTLFlipLeftAndRightStyles: () => {},
|
||||
};
|
||||
|
||||
module.exports = I18nManager;
|
||||
|
||||
Reference in New Issue
Block a user