ARTRenderableManager.m 661 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 <React/ARTRenderableManager.h>
  8. #import "RCTConvert+ART.h"
  9. @implementation ARTRenderableManager
  10. RCT_EXPORT_MODULE()
  11. - (ARTRenderable *)node
  12. {
  13. return [ARTRenderable new];
  14. }
  15. RCT_EXPORT_VIEW_PROPERTY(strokeWidth, CGFloat)
  16. RCT_EXPORT_VIEW_PROPERTY(strokeCap, CGLineCap)
  17. RCT_EXPORT_VIEW_PROPERTY(strokeJoin, CGLineJoin)
  18. RCT_EXPORT_VIEW_PROPERTY(fill, ARTBrush)
  19. RCT_EXPORT_VIEW_PROPERTY(stroke, CGColor)
  20. RCT_EXPORT_VIEW_PROPERTY(strokeDash, ARTCGFloatArray)
  21. @end