@shopify/react-native-skia 2.3.11 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ public class SkiaPictureView extends SkiaBaseView {
14
14
  private HybridData mHybridData;
15
15
  private Paint paint = new Paint();
16
16
 
17
- private boolean coldStart = false;
17
+ private boolean coldStart = true;
18
18
 
19
19
  public SkiaPictureView(Context context) {
20
20
  super(context);
@@ -23,8 +23,9 @@ public class SkiaPictureView extends SkiaBaseView {
23
23
  }
24
24
 
25
25
  public void setColdStart(boolean coldStart) {
26
- this.coldStart = coldStart;
27
- setWillNotDraw(coldStart);
26
+ // disabled for now
27
+ //this.coldStart = coldStart;
28
+ //setWillNotDraw(coldStart);
28
29
  }
29
30
 
30
31
  @Override
@@ -38,7 +39,7 @@ public class SkiaPictureView extends SkiaBaseView {
38
39
  super.onDraw(canvas);
39
40
 
40
41
  // Skip the warming up feature if coldStart is true or running on software renderer
41
- if (coldStart || !canvas.isHardwareAccelerated()) {
42
+ if (coldStart) {
42
43
  return; // Skip warmup on cold start or software rendering
43
44
  }
44
45
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "setup-skia-web": "scripts/setup-canvaskit.js"
9
9
  },
10
10
  "title": "React Native Skia",
11
- "version": "2.3.11",
11
+ "version": "2.3.12",
12
12
  "skia": {
13
13
  "version": "m142",
14
14
  "checksums": {