mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +00:00
clean up unused code
This commit is contained in:
@@ -8,6 +8,6 @@
|
||||
|
||||
#import "RNSVGRenderableManager.h"
|
||||
|
||||
@interface RNSVGTSpanManager : RNSVGRenderableManager
|
||||
@interface RNSVGSpanManager : RNSVGRenderableManager
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* 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 "RNSVGSpanManager.h"
|
||||
|
||||
#import "RNSVGSpan.h"
|
||||
#import "RCTConvert+RNSVG.h"
|
||||
|
||||
@implementation RNSVGSpanManager
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (RNSVGRenderable *)node
|
||||
{
|
||||
return [RNSVGSpan new];
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(dx, CGFloat)
|
||||
RCT_EXPORT_VIEW_PROPERTY(dy, CGFloat)
|
||||
RCT_EXPORT_VIEW_PROPERTY(px, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(py, NSString)
|
||||
RCT_REMAP_VIEW_PROPERTY(font, font, RNSVGFont)
|
||||
|
||||
@end
|
||||
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* 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(line, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(dx, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(dy, NSString)
|
||||
|
||||
@end
|
||||
@@ -21,7 +21,6 @@ RCT_EXPORT_MODULE()
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(alignment, CTTextAlignment)
|
||||
RCT_REMAP_VIEW_PROPERTY(frame, textFrame, RNSVGTextFrame)
|
||||
RCT_EXPORT_VIEW_PROPERTY(path, RNSVGBezier)
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user