mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 23:16:13 +00:00
refactor viewBox for svg
This commit is contained in:
@@ -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 "RNSVGGroupManager.h"
|
||||
|
||||
@interface RNSVGViewBoxManager : RNSVGGroupManager
|
||||
|
||||
@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 "RNSVGViewBoxManager.h"
|
||||
#import "RNSVGViewBox.h"
|
||||
#import "RNSVGVBMOS.h"
|
||||
|
||||
@implementation RNSVGViewBoxManager
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (RNSVGViewBox *)node
|
||||
{
|
||||
return [RNSVGViewBox new];
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(minX, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(minY, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(vbWidth, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(vbHeight, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(align, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(meetOrSlice, RNSVGVBMOS)
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user