Skip to content

Commit 0000434

Browse files
committed
fix(canvas): update disposeNativeView
1 parent f2cf829 commit 0000434

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/canvas/Canvas/index.android.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Canvas extends CanvasBase {
3131
(global as any).__canvasLoaded = true;
3232
}
3333

34-
[ignorePixelScalingProperty.setNative](value: boolean){
34+
[ignorePixelScalingProperty.setNative](value: boolean) {
3535
this._canvas.setIgnorePixelScaling(value);
3636
}
3737

@@ -169,9 +169,8 @@ export class Canvas extends CanvasBase {
169169

170170
disposeNativeView(): void {
171171
this._canvas.setListener(null);
172-
this._canvas = undefined;
173-
this.setNativeView(undefined);
174172
super.disposeNativeView();
173+
this._canvas = undefined;
175174
}
176175

177176
toDataURL(type = 'png', encoderOptions = 0.92) {

0 commit comments

Comments
 (0)