@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
|
|
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
|
-
|
|
36
|
+
if (value && mView instanceof SkiaTextureView) {
|
|
37
37
|
removeView(mView);
|
|
38
38
|
mView = new SkiaSurfaceView(getContext(), this, debug);
|
|
39
39
|
addView(mView);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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() {
|