2016-07-12 03:43:53 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-07-12 03:43:53 +00:00
|
|
|
*
|
2018-08-09 15:32:04 +00:00
|
|
|
* @flow strict-local
|
2017-09-25 05:57:35 +00:00
|
|
|
* @format
|
2016-07-12 03:43:53 +00:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
type I18nManagerStatus = {
|
|
|
|
isRTL: boolean,
|
2017-10-25 03:32:17 +00:00
|
|
|
doLeftAndRightSwapInRTL: boolean,
|
2016-07-12 03:43:53 +00:00
|
|
|
allowRTL: (allowRTL: boolean) => {},
|
2016-08-04 19:18:26 +00:00
|
|
|
forceRTL: (forceRTL: boolean) => {},
|
2017-10-25 03:32:17 +00:00
|
|
|
swapLeftAndRightInRTL: (flipStyles: boolean) => {},
|
2016-07-12 03:43:53 +00:00
|
|
|
};
|
|
|
|
|
2017-09-25 05:57:35 +00:00
|
|
|
const I18nManager: I18nManagerStatus = require('NativeModules').I18nManager || {
|
2016-07-12 03:43:53 +00:00
|
|
|
isRTL: false,
|
2017-10-25 03:32:17 +00:00
|
|
|
doLeftAndRightSwapInRTL: true,
|
2016-07-12 03:43:53 +00:00
|
|
|
allowRTL: () => {},
|
2016-08-04 19:18:26 +00:00
|
|
|
forceRTL: () => {},
|
2017-10-25 03:32:17 +00:00
|
|
|
swapLeftAndRightInRTL: () => {},
|
2016-07-12 03:43:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = I18nManager;
|