Temp commit

This commit is contained in:
Horcrux
2016-11-05 18:42:49 +08:00
parent ed2da1b364
commit da32b1bb96
21 changed files with 524 additions and 255 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
*/
#import "RNSVGImageManager.h"
#import "RNSVGVBMOS.h"
#import "RNSVGImage.h"
#import "RCTConvert+RNSVG.h"
+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 "RNSVGTextManager.h"
@interface RNSVGTSpanManager : RNSVGTextManager
@end
+26
View File
@@ -0,0 +1,26 @@
/**
* 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 "RNSVGTextAnchor.h"
#import "RCTConvert+RNSVG.h"
@implementation RNSVGTSpanManager
RCT_EXPORT_MODULE()
- (RNSVGRenderable *)node
{
return [RNSVGTSpan new];
}
RCT_EXPORT_VIEW_PROPERTY(content, NSString)
@end
+6 -2
View File
@@ -20,7 +20,11 @@ RCT_EXPORT_MODULE()
return [RNSVGText new];
}
RCT_EXPORT_VIEW_PROPERTY(alignment, CTTextAlignment)
RCT_EXPORT_VIEW_PROPERTY(path, RNSVGBezier)
RCT_EXPORT_VIEW_PROPERTY(textAnchor, RNSVGTextAnchor)
RCT_EXPORT_VIEW_PROPERTY(deltaX, NSArray<NSNumber *>)
RCT_EXPORT_VIEW_PROPERTY(deltaY, NSArray<NSNumber *>)
RCT_EXPORT_VIEW_PROPERTY(px, NSString)
RCT_EXPORT_VIEW_PROPERTY(py, NSString)
RCT_EXPORT_VIEW_PROPERTY(font, NSDictionary)
@end