@shopify/react-native-skia 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/android/cpp/jni/JniPlatformContext.cpp +4 -3
  2. package/lib/commonjs/external/reanimated/useVideo.js +22 -9
  3. package/lib/commonjs/external/reanimated/useVideo.js.map +1 -1
  4. package/lib/commonjs/external/reanimated/useVideoLoading.d.ts +4 -0
  5. package/lib/commonjs/external/reanimated/useVideoLoading.js +27 -0
  6. package/lib/commonjs/external/reanimated/useVideoLoading.js.map +1 -0
  7. package/lib/commonjs/external/reanimated/useVideoLoading.web.d.ts +4 -0
  8. package/lib/commonjs/external/reanimated/useVideoLoading.web.js +20 -0
  9. package/lib/commonjs/external/reanimated/useVideoLoading.web.js.map +1 -0
  10. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -1
  11. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js +4 -2
  12. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
  13. package/lib/commonjs/skia/types/Skia.d.ts +1 -1
  14. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  15. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
  16. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js +30 -0
  17. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -0
  18. package/lib/commonjs/skia/web/JsiSkImageFactory.js +8 -2
  19. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  20. package/lib/commonjs/skia/web/JsiSkia.js +2 -3
  21. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  22. package/lib/commonjs/skia/web/JsiVideo.d.ts +24 -0
  23. package/lib/commonjs/skia/web/JsiVideo.js +83 -0
  24. package/lib/commonjs/skia/web/JsiVideo.js.map +1 -0
  25. package/lib/commonjs/views/SkiaDomView.js +2 -0
  26. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  27. package/lib/commonjs/views/SkiaDomView.web.js +2 -0
  28. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  29. package/lib/commonjs/views/SkiaJSDomView.js +2 -0
  30. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  31. package/lib/module/external/reanimated/useVideo.js +22 -9
  32. package/lib/module/external/reanimated/useVideo.js.map +1 -1
  33. package/lib/module/external/reanimated/useVideoLoading.d.ts +4 -0
  34. package/lib/module/external/reanimated/useVideoLoading.js +20 -0
  35. package/lib/module/external/reanimated/useVideoLoading.js.map +1 -0
  36. package/lib/module/external/reanimated/useVideoLoading.web.d.ts +4 -0
  37. package/lib/module/external/reanimated/useVideoLoading.web.js +13 -0
  38. package/lib/module/external/reanimated/useVideoLoading.web.js.map +1 -0
  39. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -1
  40. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js +2 -1
  41. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
  42. package/lib/module/skia/types/Skia.d.ts +1 -1
  43. package/lib/module/skia/types/Skia.js.map +1 -1
  44. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
  45. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +23 -0
  46. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -0
  47. package/lib/module/skia/web/JsiSkImageFactory.js +9 -3
  48. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  49. package/lib/module/skia/web/JsiSkia.js +2 -3
  50. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  51. package/lib/module/skia/web/JsiVideo.d.ts +24 -0
  52. package/lib/module/skia/web/JsiVideo.js +75 -0
  53. package/lib/module/skia/web/JsiVideo.js.map +1 -0
  54. package/lib/module/views/SkiaDomView.js +2 -0
  55. package/lib/module/views/SkiaDomView.js.map +1 -1
  56. package/lib/module/views/SkiaDomView.web.js +2 -0
  57. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  58. package/lib/module/views/SkiaJSDomView.js +2 -0
  59. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  60. package/lib/typescript/src/external/reanimated/useVideoLoading.d.ts +4 -0
  61. package/lib/typescript/src/external/reanimated/useVideoLoading.web.d.ts +4 -0
  62. package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -1
  63. package/lib/typescript/src/skia/types/Skia.d.ts +1 -1
  64. package/lib/typescript/src/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
  65. package/lib/typescript/src/skia/web/JsiVideo.d.ts +24 -0
  66. package/package.json +1 -1
  67. package/src/external/reanimated/useVideo.ts +25 -9
  68. package/src/external/reanimated/useVideoLoading.ts +28 -0
  69. package/src/external/reanimated/useVideoLoading.web.ts +17 -0
  70. package/src/skia/types/NativeBuffer/NativeBufferFactory.ts +10 -2
  71. package/src/skia/types/Skia.ts +1 -1
  72. package/src/skia/web/CanvasKitWebGLBufferImpl.ts +22 -0
  73. package/src/skia/web/JsiSkImageFactory.ts +16 -3
  74. package/src/skia/web/JsiSkia.ts +2 -3
  75. package/src/skia/web/JsiVideo.ts +96 -0
  76. package/src/views/SkiaDomView.tsx +4 -0
  77. package/src/views/SkiaDomView.web.tsx +4 -0
  78. package/src/views/SkiaJSDomView.tsx +4 -0
@@ -12,6 +12,10 @@ export class SkiaDomView extends SkiaBaseWebView<SkiaDomViewProps> {
12
12
 
13
13
  protected renderInCanvas(canvas: SkCanvas, touches: TouchInfo[]): void {
14
14
  if (this.props.onTouch) {
15
+ console.warn(
16
+ `The onTouch property is deprecated and will be removed in the next Skia release.
17
+ See: https://shopify.github.io/react-native-skia/docs/animations/gestures`
18
+ );
15
19
  this.props.onTouch([touches]);
16
20
  }
17
21
  if (this.props.onSize) {
@@ -29,6 +29,10 @@ export class SkiaJSDomView extends React.Component<
29
29
  }
30
30
  if (onTouch) {
31
31
  assertSkiaViewApi();
32
+ console.warn(
33
+ `The onTouch property is deprecated and will be removed in the next Skia release.
34
+ See: https://shopify.github.io/react-native-skia/docs/animations/gestures`
35
+ );
32
36
  SkiaViewApi.setJsiProperty(this._nativeId, "onTouch", onTouch);
33
37
  }
34
38
  if (onSize) {