mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 16:04:38 +00:00
[android] Fix double rendering of nested svg
This commit is contained in:
@@ -85,6 +85,9 @@ public class SvgView extends ReactViewGroup implements ReactCompoundView, ReactC
|
||||
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
if (getParent() instanceof VirtualView) {
|
||||
return;
|
||||
}
|
||||
super.onDraw(canvas);
|
||||
if (mBitmap == null) {
|
||||
mBitmap = drawOutput();
|
||||
|
||||
Reference in New Issue
Block a user