From 518a3b18360a9d04939e244db7f6b6d95e628d2e Mon Sep 17 00:00:00 2001 From: Mikael Sand Date: Fri, 3 Jan 2020 22:06:20 +0200 Subject: [PATCH] feat(ios): support using other native views in e.g. masks --- ios/Elements/RNSVGGroup.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/Elements/RNSVGGroup.m b/ios/Elements/RNSVGGroup.m index a8787b8d1..91a2a1093 100644 --- a/ios/Elements/RNSVGGroup.m +++ b/ios/Elements/RNSVGGroup.m @@ -72,7 +72,9 @@ - (void)renderGroupTo:(CGContextRef)context rect:(CGRect)rect CGContextClipToRect(context, rect); [svgView drawToContext:context withRect:rect]; } else { - [node drawRect:rect]; + node.hidden = false; + [node.layer renderInContext:context]; + node.hidden = true; } return YES;