Skip to content

Commit 0c7e94d

Browse files
committed
fix(ios): fix changes in color/currentColor/tintColor, fixes #1151
1 parent 3c22c97 commit 0c7e94d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/ViewManagers/RNSVGSvgViewManager.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ - (UIView *)view
2929
RCT_EXPORT_VIEW_PROPERTY(vbHeight, CGFloat)
3030
RCT_EXPORT_VIEW_PROPERTY(align, NSString)
3131
RCT_EXPORT_VIEW_PROPERTY(meetOrSlice, RNSVGVBMOS)
32-
RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
32+
RCT_CUSTOM_VIEW_PROPERTY(tintColor, id, RNSVGSvgView)
33+
{
34+
view.tintColor = [RCTConvert UIColor:json];
35+
}
3336
RCT_CUSTOM_VIEW_PROPERTY(color, id, RNSVGSvgView)
3437
{
3538
view.tintColor = [RCTConvert UIColor:json];

0 commit comments

Comments
 (0)