Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion android/src/main/java/com/horcrux/svg/GroupView.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ void drawGroup(final Canvas canvas, final Paint paint, final float opacity) {
elements = new ArrayList<>();
for (int i = 0; i < getChildCount(); i++) {
View child = getChildAt(i);
if (child instanceof MaskView) {
if (child instanceof MaskView || child instanceof ClipPathView) {
((RenderableView) child).mergeProperties(self);
continue;
}
if (child instanceof VirtualView) {
Expand Down
2 changes: 1 addition & 1 deletion apple/Elements/RNSVGGroup.mm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ - (void)renderGroupTo:(CGContextRef)context rect:(CGRect)rect

[self traverseSubviews:^(RNSVGView *node) {
if ([node isKindOfClass:[RNSVGMask class]] || [node isKindOfClass:[RNSVGClipPath class]]) {
// no-op
[(RNSVGRenderable *)node mergeProperties:self];
} else if ([node isKindOfClass:[RNSVGNode class]]) {
RNSVGNode *svgNode = (RNSVGNode *)node;
if (svgNode.display && [@"none" isEqualToString:svgNode.display]) {
Expand Down
Loading