2016-06-21 18:51:44 +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-06-21 18:51:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @experimental
|
|
|
|
* This is a experimental module for to expose constance IsRTL to js about the RTL status.
|
|
|
|
* And it allows js to force RLT status for development propose.
|
|
|
|
* This will also provide other i18n related utilities in the future.
|
|
|
|
*/
|
|
|
|
@interface RCTI18nUtil : NSObject
|
|
|
|
|
2017-10-04 02:48:38 +00:00
|
|
|
+ (instancetype)sharedInstance;
|
|
|
|
|
2016-06-21 18:51:44 +00:00
|
|
|
- (BOOL)isRTL;
|
2016-08-04 19:18:26 +00:00
|
|
|
- (BOOL)isRTLAllowed;
|
|
|
|
- (void)allowRTL:(BOOL)value;
|
|
|
|
- (BOOL)isRTLForced;
|
|
|
|
- (void)forceRTL:(BOOL)value;
|
2017-10-25 03:32:17 +00:00
|
|
|
- (BOOL)doLeftAndRightSwapInRTL;
|
|
|
|
- (void)swapLeftAndRightInRTL:(BOOL)value;
|
2016-06-21 18:51:44 +00:00
|
|
|
|
|
|
|
@end
|