@shopify/react-native-skia 2.4.17 → 2.4.18

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.
@@ -18,7 +18,7 @@ public abstract class SkiaBaseView extends ReactViewGroup implements SkiaViewAPI
18
18
 
19
19
  public SkiaBaseView(Context context) {
20
20
  super(context);
21
- mView = new SkiaSurfaceView(context, this, debug);
21
+ mView = new SkiaTextureView(context, this, debug);
22
22
  addView(mView);
23
23
  }
24
24
 
@@ -33,15 +33,15 @@ public abstract class SkiaBaseView extends ReactViewGroup implements SkiaViewAPI
33
33
  }
34
34
 
35
35
  public void setOpaque(boolean value) {
36
- // if (value && mView instanceof SkiaTextureView) {
36
+ if (value && mView instanceof SkiaTextureView) {
37
37
  removeView(mView);
38
38
  mView = new SkiaSurfaceView(getContext(), this, debug);
39
39
  addView(mView);
40
- // } else if (!value && mView instanceof SkiaSurfaceView) {
41
- // removeView(mView);
42
- // mView = new SkiaTextureView(getContext(), this, debug);
43
- // addView(mView);
44
- // }
40
+ } else if (!value && mView instanceof SkiaSurfaceView) {
41
+ removeView(mView);
42
+ mView = new SkiaTextureView(getContext(), this, debug);
43
+ addView(mView);
44
+ }
45
45
  }
46
46
 
47
47
  void dropInstance() {
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.4.17",
11
+ "version": "2.4.18",
12
12
  "skia": {
13
13
  "version": "m144c",
14
14
  "checksums": {