ARTTextManager.m 498 B

12345678910111213141516171819202122232425
  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 <React/ARTTextManager.h>
  8. #import <React/ARTText.h>
  9. #import "RCTConvert+ART.h"
  10. @implementation ARTTextManager
  11. RCT_EXPORT_MODULE()
  12. - (ARTRenderable *)node
  13. {
  14. return [ARTText new];
  15. }
  16. RCT_EXPORT_VIEW_PROPERTY(alignment, CTTextAlignment)
  17. RCT_REMAP_VIEW_PROPERTY(frame, textFrame, ARTTextFrame)
  18. @end