RCTI18nUtil.h 743 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. /**
  9. * @experimental
  10. * This is a experimental module for to expose constance IsRTL to js about the RTL status.
  11. * And it allows js to force RLT status for development propose.
  12. * This will also provide other i18n related utilities in the future.
  13. */
  14. @interface RCTI18nUtil : NSObject
  15. + (instancetype)sharedInstance;
  16. - (BOOL)isRTL;
  17. - (BOOL)isRTLAllowed;
  18. - (void)allowRTL:(BOOL)value;
  19. - (BOOL)isRTLForced;
  20. - (void)forceRTL:(BOOL)value;
  21. - (BOOL)doLeftAndRightSwapInRTL;
  22. - (void)swapLeftAndRightInRTL:(BOOL)value;
  23. @end