mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
Fix #1017
This commit is contained in:
@@ -82,6 +82,11 @@ class SvgViewManager extends ReactViewManager {
|
||||
node.setTintColor(tintColor);
|
||||
}
|
||||
|
||||
@ReactProp(name = "color", customType = "Color")
|
||||
public void setColor(SvgView node, @Nullable Integer color) {
|
||||
node.setTintColor(color);
|
||||
}
|
||||
|
||||
@ReactProp(name = "minX")
|
||||
public void setMinX(SvgView node, float minX) {
|
||||
node.setMinX(minX);
|
||||
|
||||
@@ -30,6 +30,10 @@ RCT_EXPORT_VIEW_PROPERTY(vbHeight, CGFloat)
|
||||
RCT_EXPORT_VIEW_PROPERTY(align, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(meetOrSlice, RNSVGVBMOS)
|
||||
RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
|
||||
RCT_CUSTOM_VIEW_PROPERTY(color, id, RNSVGSvgView)
|
||||
{
|
||||
view.tintColor = [RCTConvert UIColor:json];
|
||||
}
|
||||
|
||||
|
||||
- (void)toDataURL:(nonnull NSNumber *)reactTag options:(NSDictionary *)options callback:(RCTResponseSenderBlock)callback attempt:(int)attempt {
|
||||
|
||||
Reference in New Issue
Block a user