diff --git a/android/src/main/java/com/horcrux/svg/SvgView.java b/android/src/main/java/com/horcrux/svg/SvgView.java index 7b708642..641e54fd 100644 --- a/android/src/main/java/com/horcrux/svg/SvgView.java +++ b/android/src/main/java/com/horcrux/svg/SvgView.java @@ -176,6 +176,8 @@ public class SvgView extends ReactViewGroup implements ReactCompoundView, ReactC } else { mTintColor = tintColor; } + invalidate(); + clearChildCache(); } @ReactProp(name = "minX") diff --git a/ios/Elements/RNSVGSvgView.m b/ios/Elements/RNSVGSvgView.m index 856a83d4..ef486a3b 100644 --- a/ios/Elements/RNSVGSvgView.m +++ b/ios/Elements/RNSVGSvgView.m @@ -79,6 +79,12 @@ [self setNeedsDisplay]; } +- (void)tintColorDidChange +{ + [self invalidate]; + [self clearChildCache]; +} + - (void)setMinX:(CGFloat)minX { if (minX == _minX) {