Skip to content

Commit

Permalink
fix(ios): fix changes in color/currentColor/tintColor, fixes #1151
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 19, 2019
1 parent 3c22c97 commit 0c7e94d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ios/ViewManagers/RNSVGSvgViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ - (UIView *)view
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(tintColor, id, RNSVGSvgView)
{
view.tintColor = [RCTConvert UIColor:json];
}
RCT_CUSTOM_VIEW_PROPERTY(color, id, RNSVGSvgView)
{
view.tintColor = [RCTConvert UIColor:json];
Expand Down

0 comments on commit 0c7e94d

Please sign in to comment.