Skip to content

Commit a2430c2

Browse files
author
farfromrefug
committed
fix(canvas): android fix for hardware acceleration on android < 28
1 parent 1cbf763 commit a2430c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ui-svg/index.android.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ export class SVGView extends SVGViewBase {
396396
nativeViewProtected: MySVGView;
397397
createNativeView() {
398398
const view = new MySVGView(this._context);
399-
if (getSDK() >= 28) {
400-
view.setLayerType(android.view.View.LAYER_TYPE_HARDWARE, null);
401-
} else {
402-
view.setLayerType(android.view.View.LAYER_TYPE_SOFTWARE, null);
403-
}
399+
// if (getSDK() >= 28) {
400+
// view.setLayerType(android.view.View.LAYER_TYPE_HARDWARE, null);
401+
// } else {
402+
// view.setLayerType(android.view.View.LAYER_TYPE_SOFTWARE, null);
403+
// }
404404
return view;
405405
}
406406
async handleSrc(src) {

0 commit comments

Comments
 (0)