add ios code

This commit is contained in:
Horcrux
2016-08-30 09:37:52 +08:00
parent bd26c04a1d
commit 13ddd15d09
2 changed files with 41 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
/**
* 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 "RNSVGRenderableManager.h"
@interface RNSVGTSpanManager : RNSVGRenderableManager
@end
+28
View File
@@ -0,0 +1,28 @@
/**
* 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 "RNSVGTSpanManager.h"
#import "RNSVGTSpan.h"
#import "RCTConvert+RNSVG.h"
@implementation RNSVGTSpanManager
RCT_EXPORT_MODULE()
- (RNSVGRenderable *)node
{
return [RNSVGTSpan new];
}
RCT_EXPORT_VIEW_PROPERTY(alignment, CTTextAlignment)
RCT_REMAP_VIEW_PROPERTY(frame, textFrame, RNSVGTextFrame)
RCT_EXPORT_VIEW_PROPERTY(dx, NSString)
RCT_EXPORT_VIEW_PROPERTY(dy, NSString)
@end