Skip to content

Commit

Permalink
feat(ios): support using other native views in e.g. masks
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Jan 3, 2020
1 parent 15b4ac6 commit 518a3b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/Elements/RNSVGGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 518a3b1

Please sign in to comment.