Skip to content

Commit

Permalink
fix(android): improve handling of native ancestors
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Jan 4, 2020
1 parent 0d30225 commit 89f4432
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions android/src/main/java/com/horcrux/svg/GroupView.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ void drawGroup(final Canvas canvas, final Paint paint, final float opacity) {
if (svgView.isResponsible()) {
svg.enableTouchEvents();
}
} else if (child instanceof ReactViewGroup) {
} else {
// Enable rendering other native ancestor views in e.g. masks
ReactViewGroup vg = (ReactViewGroup) child;
vg.draw(canvas);
child.draw(canvas);
}
}
this.setClientRect(groupRect);
Expand Down

0 comments on commit 89f4432

Please sign in to comment.