Skip to content

Commit efae572

Browse files
committed
fix: android fix for call drawBitmap
1 parent a822b7a commit efae572

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/canvas.android.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ class Canvas {
196196
return native.drawColor(android.graphics.Color.TRANSPARENT);
197197
// return drawBitmapOnCanvas(native, args[0], args[1], args[2], args[3]);
198198
} else if (methodName === 'drawBitmap') {
199-
return drawBitmapOnCanvas(native, args[0], args[1], args[2], args[3]);
199+
if (args[0] instanceof ImageSource) {
200+
args[0] = args[0].android;
201+
}
200202
} else if (methodName === 'drawView') {
201203
return drawViewOnCanvas(native, args[0], args[1]);
202204
}

0 commit comments

Comments
 (0)