mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 15:44:24 +00:00
fix(ios): fix changes in color/currentColor/tintColor, fixes #1151
This commit is contained in:
@@ -29,7 +29,10 @@ RCT_EXPORT_VIEW_PROPERTY(vbWidth, CGFloat)
|
|||||||
RCT_EXPORT_VIEW_PROPERTY(vbHeight, CGFloat)
|
RCT_EXPORT_VIEW_PROPERTY(vbHeight, CGFloat)
|
||||||
RCT_EXPORT_VIEW_PROPERTY(align, NSString)
|
RCT_EXPORT_VIEW_PROPERTY(align, NSString)
|
||||||
RCT_EXPORT_VIEW_PROPERTY(meetOrSlice, RNSVGVBMOS)
|
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)
|
RCT_CUSTOM_VIEW_PROPERTY(color, id, RNSVGSvgView)
|
||||||
{
|
{
|
||||||
view.tintColor = [RCTConvert UIColor:json];
|
view.tintColor = [RCTConvert UIColor:json];
|
||||||
|
|||||||
Reference in New Issue
Block a user