mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 09:10:44 +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
|
@Override
|
||||||
protected void onDraw(Canvas canvas) {
|
protected void onDraw(Canvas canvas) {
|
||||||
|
if (getParent() instanceof VirtualView) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
super.onDraw(canvas);
|
super.onDraw(canvas);
|
||||||
if (mBitmap == null) {
|
if (mBitmap == null) {
|
||||||
mBitmap = drawOutput();
|
mBitmap = drawOutput();
|
||||||
|
|||||||
Reference in New Issue
Block a user