2016-06-21 21:51:44 +03:00
|
|
|
/**
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-06-21 21:51:44 +03:00
|
|
|
*
|
2018-02-17 05:24:55 +03: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 21:51:44 +03: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 05:48:38 +03:00
|
|
|
+ (instancetype)sharedInstance;
|
|
|
|
|
2016-06-21 21:51:44 +03:00
|
|
|
- (BOOL)isRTL;
|
2016-08-04 22:18:26 +03:00
|
|
|
- (BOOL)isRTLAllowed;
|
|
|
|
- (void)allowRTL:(BOOL)value;
|
|
|
|
- (BOOL)isRTLForced;
|
|
|
|
- (void)forceRTL:(BOOL)value;
|
2017-10-25 06:32:17 +03:00
|
|
|
- (BOOL)doLeftAndRightSwapInRTL;
|
|
|
|
- (void)swapLeftAndRightInRTL:(BOOL)value;
|
2016-06-21 21:51:44 +03:00
|
|
|
|
|
|
|
@end
|