Skip to content

Commit 30f6349

Browse files
author
farfromrefug
committed
fix(svg): android fix for hardware acceleration on android < 28
1 parent f957b14 commit 30f6349

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ui-canvas/index.android.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export class CanvasView extends CanvasBase {
3535
nativeViewProtected: com.akylas.canvas.CanvasView;
3636
createNativeView() {
3737
const view = new com.akylas.canvas.CanvasView(this._context);
38-
if (sdkVersion >= 28) {
39-
view.setLayerType(android.view.View.LAYER_TYPE_HARDWARE, null);
40-
} else {
41-
view.setLayerType(android.view.View.LAYER_TYPE_SOFTWARE, null);
42-
}
38+
// if (sdkVersion >= 28) {
39+
// view.setLayerType(android.view.View.LAYER_TYPE_HARDWARE, null);
40+
// } else {
41+
// view.setLayerType(android.view.View.LAYER_TYPE_SOFTWARE, null);
42+
// }
4343
return view;
4444
}
4545
[hardwareAcceleratedProperty.getDefault](value) {

0 commit comments

Comments
 (0)