mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
28 lines
558 B
Objective-C
28 lines
558 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Horcrux.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the MIT-style license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "RNSVGTextManager.h"
|
|
|
|
#import "RNSVGText.h"
|
|
#import "RCTConvert+RNSVG.h"
|
|
|
|
@implementation RNSVGTextManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (RNSVGRenderable *)node
|
|
{
|
|
return [RNSVGText new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(alignment, CTTextAlignment)
|
|
RCT_REMAP_VIEW_PROPERTY(frame, textFrame, RNSVGTextFrame)
|
|
RCT_EXPORT_VIEW_PROPERTY(path, CGPath)
|
|
|
|
@end
|