mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
Added CI workflow and local pre-commit hook for formatting and linting the newly added JS, iOS and Android code.
30 lines
759 B
Plaintext
30 lines
759 B
Plaintext
/**
|
|
* 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 "RNSVGLinearGradientManager.h"
|
|
#import "RNSVGLinearGradient.h"
|
|
|
|
@implementation RNSVGLinearGradientManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (RNSVGNode *)node
|
|
{
|
|
return [RNSVGLinearGradient new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(x1, RNSVGLength *)
|
|
RCT_EXPORT_VIEW_PROPERTY(y1, RNSVGLength *)
|
|
RCT_EXPORT_VIEW_PROPERTY(x2, RNSVGLength *)
|
|
RCT_EXPORT_VIEW_PROPERTY(y2, RNSVGLength *)
|
|
RCT_EXPORT_VIEW_PROPERTY(gradient, NSArray<NSNumber *>)
|
|
RCT_EXPORT_VIEW_PROPERTY(gradientUnits, RNSVGUnits)
|
|
RCT_EXPORT_VIEW_PROPERTY(gradientTransform, CGAffineTransform)
|
|
|
|
@end
|