@shopify/react-native-skia 0.1.216 → 0.1.218

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. package/android/build.gradle +22 -0
  2. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +3 -3
  3. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +56 -2
  4. package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseViewManager.java +3 -3
  5. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomViewManager.java +14 -1
  6. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawViewManager.java +16 -1
  7. package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureViewManager.java +15 -1
  8. package/android/src/main/java/com/shopify/reactnative/skia/ViewScreenshotService.java +2 -2
  9. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerDelegate.java +34 -0
  10. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerInterface.java +18 -0
  11. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDrawViewManagerDelegate.java +34 -0
  12. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDrawViewManagerInterface.java +18 -0
  13. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaPictureViewManagerDelegate.java +34 -0
  14. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaPictureViewManagerInterface.java +18 -0
  15. package/android/src/paper/java/com/shopify/reactnative/skia/NativeSkiaModuleSpec.java +38 -0
  16. package/cpp/rnskia/dom/nodes/JsiImageNode.h +5 -0
  17. package/ios/RNSkia-iOS/SkiaDomView.h +7 -0
  18. package/ios/RNSkia-iOS/SkiaDomView.mm +64 -0
  19. package/ios/RNSkia-iOS/SkiaDomViewManager.mm +1 -1
  20. package/ios/RNSkia-iOS/SkiaDrawView.h +7 -0
  21. package/ios/RNSkia-iOS/SkiaDrawView.mm +72 -0
  22. package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +1 -1
  23. package/ios/RNSkia-iOS/SkiaPictureView.h +7 -0
  24. package/ios/RNSkia-iOS/SkiaPictureView.mm +66 -0
  25. package/ios/RNSkia-iOS/SkiaPictureViewManager.mm +1 -1
  26. package/ios/RNSkia-iOS/SkiaUIView.h +15 -2
  27. package/ios/RNSkia-iOS/SkiaUIView.mm +48 -16
  28. package/ios/RNSkiaModule.h +10 -1
  29. package/ios/RNSkiaModule.mm +8 -1
  30. package/lib/commonjs/Platform/IPlatform.d.ts +1 -3
  31. package/lib/commonjs/Platform/IPlatform.js.map +1 -1
  32. package/lib/commonjs/Platform/Platform.js +0 -2
  33. package/lib/commonjs/Platform/Platform.js.map +1 -1
  34. package/lib/commonjs/Platform/Platform.web.js +0 -4
  35. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  36. package/lib/commonjs/animation/functions/interpolate.d.ts +1 -1
  37. package/lib/commonjs/animation/timing/functions/types.d.ts +1 -1
  38. package/lib/commonjs/animation/types.d.ts +2 -2
  39. package/lib/commonjs/dom/nodes/Node.d.ts +1 -1
  40. package/lib/commonjs/dom/types/Common.d.ts +8 -8
  41. package/lib/commonjs/dom/types/DeclarationContext.d.ts +1 -1
  42. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  43. package/lib/commonjs/dom/types/Drawings.d.ts +5 -5
  44. package/lib/commonjs/dom/types/Node.d.ts +1 -1
  45. package/lib/commonjs/dom/types/SkDOM.d.ts +4 -4
  46. package/lib/commonjs/external/reanimated/renderHelpers.js +0 -2
  47. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  48. package/lib/commonjs/renderer/Canvas.d.ts +1 -1
  49. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  50. package/lib/commonjs/renderer/DependencyManager.d.ts +3 -3
  51. package/lib/commonjs/renderer/HostConfig.d.ts +12 -12
  52. package/lib/commonjs/renderer/Reconciler.d.ts +1 -1
  53. package/lib/commonjs/renderer/Reconciler.js +1 -0
  54. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  55. package/lib/commonjs/renderer/components/Blend.d.ts +2 -2
  56. package/lib/commonjs/renderer/components/Drawing.d.ts +2 -2
  57. package/lib/commonjs/renderer/components/Group.d.ts +2 -2
  58. package/lib/commonjs/renderer/components/Mask.d.ts +2 -1
  59. package/lib/commonjs/renderer/components/Paint.d.ts +2 -2
  60. package/lib/commonjs/renderer/components/Picture.d.ts +2 -2
  61. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +2 -2
  62. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +2 -1
  63. package/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  64. package/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +2 -2
  65. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -2
  66. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -2
  67. package/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +2 -2
  68. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -2
  69. package/lib/commonjs/renderer/components/image/Image.d.ts +2 -2
  70. package/lib/commonjs/renderer/components/image/ImageSVG.d.ts +2 -2
  71. package/lib/commonjs/renderer/components/image/ImageShader.d.ts +2 -2
  72. package/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +2 -2
  73. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +2 -2
  74. package/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +2 -2
  75. package/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +2 -2
  76. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +2 -2
  77. package/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +2 -2
  78. package/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +2 -2
  79. package/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +2 -2
  80. package/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +2 -2
  81. package/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +2 -2
  82. package/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +2 -2
  83. package/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +2 -2
  84. package/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +2 -2
  85. package/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +2 -2
  86. package/lib/commonjs/renderer/components/shaders/Color.d.ts +2 -2
  87. package/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +2 -2
  88. package/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +2 -2
  89. package/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +2 -2
  90. package/lib/commonjs/renderer/components/shaders/Shader.d.ts +2 -2
  91. package/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +2 -2
  92. package/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +2 -2
  93. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -2
  94. package/lib/commonjs/renderer/components/shapes/Box.d.ts +3 -3
  95. package/lib/commonjs/renderer/components/shapes/Circle.d.ts +2 -2
  96. package/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +2 -2
  97. package/lib/commonjs/renderer/components/shapes/Fill.d.ts +2 -2
  98. package/lib/commonjs/renderer/components/shapes/FitBox.d.ts +2 -1
  99. package/lib/commonjs/renderer/components/shapes/Line.d.ts +2 -2
  100. package/lib/commonjs/renderer/components/shapes/Oval.d.ts +2 -2
  101. package/lib/commonjs/renderer/components/shapes/Patch.d.ts +2 -2
  102. package/lib/commonjs/renderer/components/shapes/Path.d.ts +2 -2
  103. package/lib/commonjs/renderer/components/shapes/Points.d.ts +2 -2
  104. package/lib/commonjs/renderer/components/shapes/Rect.d.ts +2 -2
  105. package/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +2 -2
  106. package/lib/commonjs/renderer/components/shapes/Vertices.d.ts +2 -2
  107. package/lib/commonjs/renderer/components/text/Glyphs.d.ts +2 -2
  108. package/lib/commonjs/renderer/components/text/Text.d.ts +2 -2
  109. package/lib/commonjs/renderer/components/text/TextBlob.d.ts +2 -2
  110. package/lib/commonjs/renderer/components/text/TextPath.d.ts +2 -2
  111. package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +6 -6
  112. package/lib/commonjs/skia/NativeSetup.js +5 -1
  113. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  114. package/lib/commonjs/skia/core/Font.d.ts +2 -2
  115. package/lib/commonjs/skia/types/Color.d.ts +2 -2
  116. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +1 -1
  117. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -1
  118. package/lib/commonjs/skia/types/Data/Data.d.ts +6 -6
  119. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +1 -1
  120. package/lib/commonjs/skia/types/MaskFilter.d.ts +1 -1
  121. package/lib/commonjs/skia/types/Matrix.d.ts +3 -3
  122. package/lib/commonjs/skia/types/Path/Path.d.ts +1 -1
  123. package/lib/commonjs/skia/types/PathEffect.d.ts +1 -1
  124. package/lib/commonjs/skia/types/Point.d.ts +1 -1
  125. package/lib/commonjs/skia/types/RSXform.d.ts +1 -1
  126. package/lib/commonjs/skia/types/Shader/Shader.d.ts +2 -2
  127. package/lib/commonjs/skia/types/TextBlob.d.ts +1 -1
  128. package/lib/commonjs/skia/web/JsiSkData.d.ts +1 -1
  129. package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +1 -1
  130. package/lib/commonjs/specs/NativeSkiaModule.d.ts +6 -0
  131. package/lib/commonjs/specs/NativeSkiaModule.js +14 -0
  132. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -0
  133. package/lib/commonjs/specs/NativeSkiaModule.web.d.ts +2 -0
  134. package/lib/commonjs/specs/NativeSkiaModule.web.js +13 -0
  135. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -0
  136. package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +8 -0
  137. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +16 -0
  138. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -0
  139. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.d.ts +8 -0
  140. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js +16 -0
  141. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js.map +1 -0
  142. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +8 -0
  143. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +16 -0
  144. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -0
  145. package/lib/commonjs/values/selector.d.ts +1 -1
  146. package/lib/commonjs/views/SkiaBaseWebView.d.ts +1 -1
  147. package/lib/commonjs/views/SkiaDomView.d.ts +1 -1
  148. package/lib/commonjs/views/SkiaDomView.js +3 -1
  149. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  150. package/lib/commonjs/views/SkiaPictureView.d.ts +1 -1
  151. package/lib/commonjs/views/SkiaPictureView.js +3 -3
  152. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  153. package/lib/commonjs/views/SkiaView.d.ts +1 -1
  154. package/lib/commonjs/views/SkiaView.js +3 -4
  155. package/lib/commonjs/views/SkiaView.js.map +1 -1
  156. package/lib/commonjs/views/types.d.ts +6 -6
  157. package/lib/commonjs/web/WithSkiaWeb.d.ts +2 -2
  158. package/lib/module/Platform/IPlatform.d.ts +1 -3
  159. package/lib/module/Platform/IPlatform.js.map +1 -1
  160. package/lib/module/Platform/Platform.js +1 -3
  161. package/lib/module/Platform/Platform.js.map +1 -1
  162. package/lib/module/Platform/Platform.web.js +0 -4
  163. package/lib/module/Platform/Platform.web.js.map +1 -1
  164. package/lib/module/animation/functions/interpolate.d.ts +1 -1
  165. package/lib/module/animation/timing/functions/types.d.ts +1 -1
  166. package/lib/module/animation/types.d.ts +2 -2
  167. package/lib/module/dom/nodes/Node.d.ts +1 -1
  168. package/lib/module/dom/types/Common.d.ts +8 -8
  169. package/lib/module/dom/types/DeclarationContext.d.ts +1 -1
  170. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  171. package/lib/module/dom/types/Drawings.d.ts +5 -5
  172. package/lib/module/dom/types/Node.d.ts +1 -1
  173. package/lib/module/dom/types/SkDOM.d.ts +4 -4
  174. package/lib/module/external/reanimated/renderHelpers.js +0 -2
  175. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  176. package/lib/module/renderer/Canvas.d.ts +1 -1
  177. package/lib/module/renderer/Canvas.js.map +1 -1
  178. package/lib/module/renderer/DependencyManager.d.ts +3 -3
  179. package/lib/module/renderer/HostConfig.d.ts +12 -12
  180. package/lib/module/renderer/Reconciler.d.ts +1 -1
  181. package/lib/module/renderer/Reconciler.js +1 -0
  182. package/lib/module/renderer/Reconciler.js.map +1 -1
  183. package/lib/module/renderer/components/Blend.d.ts +2 -2
  184. package/lib/module/renderer/components/Drawing.d.ts +2 -2
  185. package/lib/module/renderer/components/Group.d.ts +2 -2
  186. package/lib/module/renderer/components/Mask.d.ts +2 -1
  187. package/lib/module/renderer/components/Paint.d.ts +2 -2
  188. package/lib/module/renderer/components/Picture.d.ts +2 -2
  189. package/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +2 -2
  190. package/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +2 -1
  191. package/lib/module/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  192. package/lib/module/renderer/components/colorFilters/Lerp.d.ts +2 -2
  193. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -2
  194. package/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -2
  195. package/lib/module/renderer/components/colorFilters/Matrix.d.ts +2 -2
  196. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -2
  197. package/lib/module/renderer/components/image/Image.d.ts +2 -2
  198. package/lib/module/renderer/components/image/ImageSVG.d.ts +2 -2
  199. package/lib/module/renderer/components/image/ImageShader.d.ts +2 -2
  200. package/lib/module/renderer/components/imageFilters/Blur.d.ts +2 -2
  201. package/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +2 -2
  202. package/lib/module/renderer/components/imageFilters/Morphology.d.ts +2 -2
  203. package/lib/module/renderer/components/imageFilters/Offset.d.ts +2 -2
  204. package/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +2 -2
  205. package/lib/module/renderer/components/imageFilters/Shadow.d.ts +2 -2
  206. package/lib/module/renderer/components/maskFilters/Blur.d.ts +2 -2
  207. package/lib/module/renderer/components/pathEffects/Corner.d.ts +2 -2
  208. package/lib/module/renderer/components/pathEffects/Dash.d.ts +2 -2
  209. package/lib/module/renderer/components/pathEffects/Discrete.d.ts +2 -2
  210. package/lib/module/renderer/components/pathEffects/Line2D.d.ts +2 -2
  211. package/lib/module/renderer/components/pathEffects/Path1D.d.ts +2 -2
  212. package/lib/module/renderer/components/pathEffects/Path2D.d.ts +2 -2
  213. package/lib/module/renderer/components/pathEffects/Sum.d.ts +2 -2
  214. package/lib/module/renderer/components/shaders/Color.d.ts +2 -2
  215. package/lib/module/renderer/components/shaders/FractalNoise.d.ts +2 -2
  216. package/lib/module/renderer/components/shaders/LinearGradient.d.ts +2 -2
  217. package/lib/module/renderer/components/shaders/RadialGradient.d.ts +2 -2
  218. package/lib/module/renderer/components/shaders/Shader.d.ts +2 -2
  219. package/lib/module/renderer/components/shaders/SweepGradient.d.ts +2 -2
  220. package/lib/module/renderer/components/shaders/Turbulence.d.ts +2 -2
  221. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -2
  222. package/lib/module/renderer/components/shapes/Box.d.ts +3 -3
  223. package/lib/module/renderer/components/shapes/Circle.d.ts +2 -2
  224. package/lib/module/renderer/components/shapes/DiffRect.d.ts +2 -2
  225. package/lib/module/renderer/components/shapes/Fill.d.ts +2 -2
  226. package/lib/module/renderer/components/shapes/FitBox.d.ts +2 -1
  227. package/lib/module/renderer/components/shapes/Line.d.ts +2 -2
  228. package/lib/module/renderer/components/shapes/Oval.d.ts +2 -2
  229. package/lib/module/renderer/components/shapes/Patch.d.ts +2 -2
  230. package/lib/module/renderer/components/shapes/Path.d.ts +2 -2
  231. package/lib/module/renderer/components/shapes/Points.d.ts +2 -2
  232. package/lib/module/renderer/components/shapes/Rect.d.ts +2 -2
  233. package/lib/module/renderer/components/shapes/RoundedRect.d.ts +2 -2
  234. package/lib/module/renderer/components/shapes/Vertices.d.ts +2 -2
  235. package/lib/module/renderer/components/text/Glyphs.d.ts +2 -2
  236. package/lib/module/renderer/components/text/Text.d.ts +2 -2
  237. package/lib/module/renderer/components/text/TextBlob.d.ts +2 -2
  238. package/lib/module/renderer/components/text/TextPath.d.ts +2 -2
  239. package/lib/module/renderer/processors/Animations/Animations.d.ts +6 -6
  240. package/lib/module/skia/NativeSetup.js +2 -1
  241. package/lib/module/skia/NativeSetup.js.map +1 -1
  242. package/lib/module/skia/core/Font.d.ts +2 -2
  243. package/lib/module/skia/types/Color.d.ts +2 -2
  244. package/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +1 -1
  245. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -1
  246. package/lib/module/skia/types/Data/Data.d.ts +6 -6
  247. package/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +1 -1
  248. package/lib/module/skia/types/MaskFilter.d.ts +1 -1
  249. package/lib/module/skia/types/Matrix.d.ts +3 -3
  250. package/lib/module/skia/types/Path/Path.d.ts +1 -1
  251. package/lib/module/skia/types/PathEffect.d.ts +1 -1
  252. package/lib/module/skia/types/Point.d.ts +1 -1
  253. package/lib/module/skia/types/RSXform.d.ts +1 -1
  254. package/lib/module/skia/types/Shader/Shader.d.ts +2 -2
  255. package/lib/module/skia/types/TextBlob.d.ts +1 -1
  256. package/lib/module/skia/web/JsiSkData.d.ts +1 -1
  257. package/lib/module/skia/web/JsiSkRSXform.d.ts +1 -1
  258. package/lib/module/specs/NativeSkiaModule.d.ts +6 -0
  259. package/lib/module/specs/NativeSkiaModule.js +4 -0
  260. package/lib/module/specs/NativeSkiaModule.js.map +1 -0
  261. package/lib/module/specs/NativeSkiaModule.web.d.ts +2 -0
  262. package/lib/module/specs/NativeSkiaModule.web.js +4 -0
  263. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -0
  264. package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +8 -0
  265. package/lib/module/specs/SkiaDomViewNativeComponent.js +4 -0
  266. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -0
  267. package/lib/module/specs/SkiaDrawViewNativeComponent.d.ts +8 -0
  268. package/lib/module/specs/SkiaDrawViewNativeComponent.js +4 -0
  269. package/lib/module/specs/SkiaDrawViewNativeComponent.js.map +1 -0
  270. package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +8 -0
  271. package/lib/module/specs/SkiaPictureViewNativeComponent.js +4 -0
  272. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -0
  273. package/lib/module/values/selector.d.ts +1 -1
  274. package/lib/module/views/SkiaBaseWebView.d.ts +1 -1
  275. package/lib/module/views/SkiaDomView.d.ts +1 -1
  276. package/lib/module/views/SkiaDomView.js +2 -1
  277. package/lib/module/views/SkiaDomView.js.map +1 -1
  278. package/lib/module/views/SkiaPictureView.d.ts +1 -1
  279. package/lib/module/views/SkiaPictureView.js +3 -3
  280. package/lib/module/views/SkiaPictureView.js.map +1 -1
  281. package/lib/module/views/SkiaView.d.ts +1 -1
  282. package/lib/module/views/SkiaView.js +3 -3
  283. package/lib/module/views/SkiaView.js.map +1 -1
  284. package/lib/module/views/types.d.ts +6 -6
  285. package/lib/module/web/WithSkiaWeb.d.ts +2 -2
  286. package/lib/typescript/src/Platform/IPlatform.d.ts +1 -3
  287. package/lib/typescript/src/animation/functions/interpolate.d.ts +1 -1
  288. package/lib/typescript/src/animation/timing/functions/types.d.ts +1 -1
  289. package/lib/typescript/src/animation/types.d.ts +2 -2
  290. package/lib/typescript/src/dom/nodes/Node.d.ts +1 -1
  291. package/lib/typescript/src/dom/types/Common.d.ts +8 -8
  292. package/lib/typescript/src/dom/types/DeclarationContext.d.ts +1 -1
  293. package/lib/typescript/src/dom/types/Drawings.d.ts +5 -5
  294. package/lib/typescript/src/dom/types/Node.d.ts +1 -1
  295. package/lib/typescript/src/dom/types/SkDOM.d.ts +4 -4
  296. package/lib/typescript/src/renderer/Canvas.d.ts +1 -1
  297. package/lib/typescript/src/renderer/DependencyManager.d.ts +3 -3
  298. package/lib/typescript/src/renderer/HostConfig.d.ts +12 -12
  299. package/lib/typescript/src/renderer/Reconciler.d.ts +1 -1
  300. package/lib/typescript/src/renderer/components/Blend.d.ts +2 -2
  301. package/lib/typescript/src/renderer/components/Drawing.d.ts +2 -2
  302. package/lib/typescript/src/renderer/components/Group.d.ts +2 -2
  303. package/lib/typescript/src/renderer/components/Mask.d.ts +2 -1
  304. package/lib/typescript/src/renderer/components/Paint.d.ts +2 -2
  305. package/lib/typescript/src/renderer/components/Picture.d.ts +2 -2
  306. package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +2 -2
  307. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +2 -1
  308. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  309. package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +2 -2
  310. package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -2
  311. package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -2
  312. package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +2 -2
  313. package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -2
  314. package/lib/typescript/src/renderer/components/image/Image.d.ts +2 -2
  315. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +2 -2
  316. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -2
  317. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +2 -2
  318. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +2 -2
  319. package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +2 -2
  320. package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +2 -2
  321. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +2 -2
  322. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +2 -2
  323. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +2 -2
  324. package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +2 -2
  325. package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +2 -2
  326. package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +2 -2
  327. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +2 -2
  328. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +2 -2
  329. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +2 -2
  330. package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +2 -2
  331. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +2 -2
  332. package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +2 -2
  333. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +2 -2
  334. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +2 -2
  335. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -2
  336. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +2 -2
  337. package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +2 -2
  338. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -2
  339. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +3 -3
  340. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +2 -2
  341. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +2 -2
  342. package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +2 -2
  343. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +2 -1
  344. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +2 -2
  345. package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +2 -2
  346. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +2 -2
  347. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +2 -2
  348. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -2
  349. package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +2 -2
  350. package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +2 -2
  351. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -2
  352. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +2 -2
  353. package/lib/typescript/src/renderer/components/text/Text.d.ts +2 -2
  354. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +2 -2
  355. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +2 -2
  356. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +6 -6
  357. package/lib/typescript/src/skia/core/Font.d.ts +2 -2
  358. package/lib/typescript/src/skia/types/Color.d.ts +2 -2
  359. package/lib/typescript/src/skia/types/ColorFilter/ColorFilter.d.ts +1 -1
  360. package/lib/typescript/src/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -1
  361. package/lib/typescript/src/skia/types/Data/Data.d.ts +6 -6
  362. package/lib/typescript/src/skia/types/ImageFilter/ImageFilter.d.ts +1 -1
  363. package/lib/typescript/src/skia/types/MaskFilter.d.ts +1 -1
  364. package/lib/typescript/src/skia/types/Matrix.d.ts +3 -3
  365. package/lib/typescript/src/skia/types/Path/Path.d.ts +1 -1
  366. package/lib/typescript/src/skia/types/PathEffect.d.ts +1 -1
  367. package/lib/typescript/src/skia/types/Point.d.ts +1 -1
  368. package/lib/typescript/src/skia/types/RSXform.d.ts +1 -1
  369. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +2 -2
  370. package/lib/typescript/src/skia/types/TextBlob.d.ts +1 -1
  371. package/lib/typescript/src/skia/web/JsiSkData.d.ts +1 -1
  372. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +1 -1
  373. package/lib/typescript/src/specs/NativeSkiaModule.d.ts +6 -0
  374. package/lib/typescript/src/specs/NativeSkiaModule.web.d.ts +2 -0
  375. package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +8 -0
  376. package/lib/typescript/src/specs/SkiaDrawViewNativeComponent.d.ts +8 -0
  377. package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +8 -0
  378. package/lib/typescript/src/values/selector.d.ts +1 -1
  379. package/lib/typescript/src/views/SkiaBaseWebView.d.ts +1 -1
  380. package/lib/typescript/src/views/SkiaDomView.d.ts +1 -1
  381. package/lib/typescript/src/views/SkiaPictureView.d.ts +1 -1
  382. package/lib/typescript/src/views/SkiaView.d.ts +1 -1
  383. package/lib/typescript/src/views/types.d.ts +6 -6
  384. package/lib/typescript/src/web/WithSkiaWeb.d.ts +2 -2
  385. package/package.json +18 -6
  386. package/react-native-skia.podspec +11 -3
  387. package/src/Platform/IPlatform.ts +1 -3
  388. package/src/Platform/Platform.ts +0 -4
  389. package/src/Platform/Platform.web.tsx +0 -4
  390. package/src/dom/types/DrawingContext.ts +1 -1
  391. package/src/external/reanimated/renderHelpers.ts +1 -1
  392. package/src/renderer/Canvas.tsx +2 -1
  393. package/src/renderer/Reconciler.tsx +2 -1
  394. package/src/skia/NativeSetup.ts +2 -1
  395. package/src/specs/NativeSkiaModule.ts +9 -0
  396. package/src/specs/NativeSkiaModule.web.ts +4 -0
  397. package/src/specs/SkiaDomViewNativeComponent.ts +10 -0
  398. package/src/specs/SkiaDrawViewNativeComponent.ts +10 -0
  399. package/src/specs/SkiaPictureViewNativeComponent.ts +10 -0
  400. package/src/views/SkiaDomView.tsx +3 -2
  401. package/src/views/SkiaPictureView.tsx +4 -5
  402. package/src/views/SkiaView.tsx +4 -5
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { BlendProps } from "../../dom/types";
3
3
  import type { SkiaProps } from "../processors";
4
- export declare const Blend: (props: SkiaProps<BlendProps>) => JSX.Element;
4
+ export declare const Blend: (props: SkiaProps<BlendProps>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { CustomDrawingNodeProps } from "../../dom/types";
3
- export declare const Drawing: (props: CustomDrawingNodeProps) => JSX.Element;
3
+ export declare const Drawing: (props: CustomDrawingNodeProps) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../processors";
3
3
  import type { GroupProps } from "../../dom/types";
4
4
  import type { ChildrenProps } from "../../dom/types/Common";
5
5
  export interface PublicGroupProps extends Omit<GroupProps, "layer"> {
6
6
  layer?: GroupProps["layer"] | ChildrenProps["children"];
7
7
  }
8
- export declare const Group: ({ layer, ...props }: SkiaProps<PublicGroupProps>) => JSX.Element;
8
+ export declare const Group: ({ layer, ...props }: SkiaProps<PublicGroupProps>) => React.JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  interface MaskProps {
3
4
  mode?: "luminance" | "alpha";
4
5
  clip?: boolean;
5
6
  mask: ReactNode | ReactNode[];
6
7
  children: ReactNode | ReactNode[];
7
8
  }
8
- export declare const Mask: ({ children, mask, mode, clip, }: MaskProps) => JSX.Element;
9
+ export declare const Mask: ({ children, mask, mode, clip, }: MaskProps) => React.JSX.Element;
9
10
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../processors";
3
3
  import type { DrawingNodeProps } from "../../dom/types";
4
- export declare const Paint: (props: SkiaProps<DrawingNodeProps>) => JSX.Element;
4
+ export declare const Paint: (props: SkiaProps<DrawingNodeProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { PictureProps } from "../../dom/types";
3
3
  import type { SkiaProps } from "../processors";
4
- export declare const Picture: (props: SkiaProps<PictureProps>) => JSX.Element;
4
+ export declare const Picture: (props: SkiaProps<PictureProps>) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { AnimatedProps } from "../../processors";
3
3
  import type { Radius } from "../../../dom/types";
4
4
  import type { BackdropFilterProps } from "./BackdropFilter";
5
5
  interface BackdropBlurProps extends Omit<BackdropFilterProps, "filter"> {
6
6
  blur: Radius;
7
7
  }
8
- export declare const BackdropBlur: ({ blur, children, ...props }: AnimatedProps<BackdropBlurProps>) => JSX.Element;
8
+ export declare const BackdropBlur: ({ blur, children, ...props }: AnimatedProps<BackdropBlurProps>) => React.JSX.Element;
9
9
  export {};
@@ -1,7 +1,8 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  import type { GroupProps } from "../../../dom/types";
3
4
  import type { SkiaProps } from "../../processors/Animations/Animations";
4
5
  export interface BackdropFilterProps extends GroupProps {
5
6
  filter: ReactNode | ReactNode[];
6
7
  }
7
- export declare const BackdropFilter: ({ filter, children, ...props }: SkiaProps<BackdropFilterProps, "filter">) => JSX.Element;
8
+ export declare const BackdropFilter: ({ filter, children: groupChildren, ...props }: SkiaProps<BackdropFilterProps, "filter">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { BlendColorFilterProps } from "../../../dom/types";
4
- export declare const BlendColor: (props: SkiaProps<BlendColorFilterProps>) => JSX.Element;
4
+ export declare const BlendColor: (props: SkiaProps<BlendColorFilterProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors/Animations/Animations";
3
3
  import type { LerpColorFilterProps } from "../../../dom/types";
4
- export declare const Lerp: (props: SkiaProps<LerpColorFilterProps>) => JSX.Element;
4
+ export declare const Lerp: (props: SkiaProps<LerpColorFilterProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { ChildrenProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const LinearToSRGBGamma: (props: SkiaProps<ChildrenProps>) => JSX.Element;
4
+ export declare const LinearToSRGBGamma: (props: SkiaProps<ChildrenProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { ChildrenProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors/Animations/Animations";
4
- export declare const LumaColorFilter: (props: SkiaProps<ChildrenProps>) => JSX.Element;
4
+ export declare const LumaColorFilter: (props: SkiaProps<ChildrenProps>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { MatrixColorFilterProps } from "../../../dom/types";
4
- export declare const ColorMatrix: (props: SkiaProps<MatrixColorFilterProps>) => JSX.Element;
4
+ export declare const ColorMatrix: (props: SkiaProps<MatrixColorFilterProps>) => React.JSX.Element;
5
5
  export declare const OpacityMatrix: (opacity: number) => number[];
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { ChildrenProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors/Animations/Animations";
4
- export declare const SRGBToLinearGamma: (props: SkiaProps<ChildrenProps>) => JSX.Element;
4
+ export declare const SRGBToLinearGamma: (props: SkiaProps<ChildrenProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { ImageProps } from "../../../dom/types";
4
- export declare const Image: (props: SkiaProps<ImageProps>) => JSX.Element;
4
+ export declare const Image: (props: SkiaProps<ImageProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { ImageSVGProps } from "../../../dom/types";
3
3
  import type { AnimatedProps } from "../../processors";
4
- export declare const ImageSVG: (props: AnimatedProps<ImageSVGProps>) => JSX.Element;
4
+ export declare const ImageSVG: (props: AnimatedProps<ImageSVGProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { ImageShaderProps } from "../../../dom/types";
3
3
  import type { SkiaDefaultProps } from "../../processors";
4
- export declare const ImageShader: ({ tx, ty, fm, mm, fit, transform, ...props }: SkiaDefaultProps<ImageShaderProps, "tx" | "ty" | "fm" | "mm" | "fit" | "transform">) => JSX.Element;
4
+ export declare const ImageShader: ({ tx, ty, fm, mm, fit, transform, ...props }: SkiaDefaultProps<ImageShaderProps, "tx" | "ty" | "fm" | "mm" | "fit" | "transform">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
3
3
  import type { BlurImageFilterProps } from "../../../dom/types";
4
- export declare const Blur: ({ mode, ...props }: SkiaDefaultProps<BlurImageFilterProps, "mode">) => JSX.Element;
4
+ export declare const Blur: ({ mode, ...props }: SkiaDefaultProps<BlurImageFilterProps, "mode">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { DisplacementMapImageFilterProps } from "../../../dom/types";
4
- export declare const DisplacementMap: (props: SkiaProps<DisplacementMapImageFilterProps>) => JSX.Element;
4
+ export declare const DisplacementMap: (props: SkiaProps<DisplacementMapImageFilterProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { MorphologyImageFilterProps } from "../../../dom/types";
3
3
  import type { SkiaDefaultProps } from "../../processors";
4
- export declare const Morphology: ({ operator, ...props }: SkiaDefaultProps<MorphologyImageFilterProps, "operator">) => JSX.Element;
4
+ export declare const Morphology: ({ operator, ...props }: SkiaDefaultProps<MorphologyImageFilterProps, "operator">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
3
3
  import type { OffsetImageFilterProps } from "../../../dom/types";
4
- export declare const Offset: ({ x, y, ...props }: SkiaDefaultProps<OffsetImageFilterProps, "x" | "y">) => JSX.Element;
4
+ export declare const Offset: ({ x, y, ...props }: SkiaDefaultProps<OffsetImageFilterProps, "x" | "y">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors/Animations/Animations";
3
3
  import type { RuntimeShaderImageFilterProps } from "../../../dom/types";
4
- export declare const RuntimeShader: (props: SkiaProps<RuntimeShaderImageFilterProps>) => JSX.Element;
4
+ export declare const RuntimeShader: (props: SkiaProps<RuntimeShaderImageFilterProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { DropShadowImageFilterProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors/Animations/Animations";
4
- export declare const Shadow: (props: SkiaProps<DropShadowImageFilterProps>) => JSX.Element;
4
+ export declare const Shadow: (props: SkiaProps<DropShadowImageFilterProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { BlurMaskFilterProps } from "../../../dom/types";
3
3
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
4
- export declare const BlurMask: ({ style, respectCTM, ...props }: SkiaDefaultProps<BlurMaskFilterProps, "style" | "respectCTM">) => JSX.Element;
4
+ export declare const BlurMask: ({ style, respectCTM, ...props }: SkiaDefaultProps<BlurMaskFilterProps, "style" | "respectCTM">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { CornerPathEffectProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const CornerPathEffect: (props: SkiaProps<CornerPathEffectProps>) => JSX.Element;
4
+ export declare const CornerPathEffect: (props: SkiaProps<CornerPathEffectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { DashPathEffectProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const DashPathEffect: (props: SkiaProps<DashPathEffectProps>) => JSX.Element;
4
+ export declare const DashPathEffect: (props: SkiaProps<DashPathEffectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
3
3
  import type { DiscretePathEffectProps } from "../../../dom/types";
4
- export declare const DiscretePathEffect: ({ seed, ...props }: SkiaDefaultProps<DiscretePathEffectProps, "seed">) => JSX.Element;
4
+ export declare const DiscretePathEffect: ({ seed, ...props }: SkiaDefaultProps<DiscretePathEffectProps, "seed">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors/Animations/Animations";
3
3
  import type { Line2DPathEffectProps } from "../../../dom/types";
4
- export declare const Line2DPathEffect: (props: SkiaProps<Line2DPathEffectProps>) => JSX.Element;
4
+ export declare const Line2DPathEffect: (props: SkiaProps<Line2DPathEffectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors/Animations/Animations";
3
3
  import type { Path1DPathEffectProps } from "../../../dom/types";
4
- export declare const Path1DPathEffect: (props: SkiaProps<Path1DPathEffectProps>) => JSX.Element;
4
+ export declare const Path1DPathEffect: (props: SkiaProps<Path1DPathEffectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors/Animations/Animations";
3
3
  import type { Path2DPathEffectProps } from "../../../dom/types";
4
- export declare const Path2DPathEffect: (props: SkiaProps<Path2DPathEffectProps>) => JSX.Element;
4
+ export declare const Path2DPathEffect: (props: SkiaProps<Path2DPathEffectProps>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { ChildrenProps } from "../../../dom/types";
3
- export declare const SumPathEffect: (props: ChildrenProps) => JSX.Element;
3
+ export declare const SumPathEffect: (props: ChildrenProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { ColorProps } from "../../../dom/types";
4
- export declare const ColorShader: (props: SkiaProps<ColorProps>) => JSX.Element;
4
+ export declare const ColorShader: (props: SkiaProps<ColorProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { FractalNoiseProps } from "../../../dom/types";
3
3
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
4
- export declare const FractalNoise: ({ seed, tileWidth, tileHeight, ...props }: SkiaDefaultProps<FractalNoiseProps, "seed" | "tileHeight" | "tileWidth">) => JSX.Element;
4
+ export declare const FractalNoise: ({ seed, tileWidth, tileHeight, ...props }: SkiaDefaultProps<FractalNoiseProps, "seed" | "tileHeight" | "tileWidth">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { LinearGradientProps } from "../../../dom/types";
4
- export declare const LinearGradient: (props: SkiaProps<LinearGradientProps>) => JSX.Element;
4
+ export declare const LinearGradient: (props: SkiaProps<LinearGradientProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { RadialGradientProps } from "../../../dom/types";
4
- export declare const RadialGradient: (props: SkiaProps<RadialGradientProps>) => JSX.Element;
4
+ export declare const RadialGradient: (props: SkiaProps<RadialGradientProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors";
3
3
  import type { ShaderProps } from "../../../dom/types";
4
- export declare const Shader: ({ uniforms, ...props }: SkiaDefaultProps<ShaderProps, "uniforms">) => JSX.Element;
4
+ export declare const Shader: ({ uniforms, ...props }: SkiaDefaultProps<ShaderProps, "uniforms">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SweepGradientProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const SweepGradient: (props: SkiaProps<SweepGradientProps>) => JSX.Element;
4
+ export declare const SweepGradient: (props: SkiaProps<SweepGradientProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { TurbulenceProps } from "../../../dom/types";
3
3
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
4
- export declare const Turbulence: ({ seed, tileWidth, tileHeight, ...props }: SkiaDefaultProps<TurbulenceProps, "seed" | "tileWidth" | "tileHeight">) => JSX.Element;
4
+ export declare const Turbulence: ({ seed, tileWidth, tileHeight, ...props }: SkiaDefaultProps<TurbulenceProps, "seed" | "tileWidth" | "tileHeight">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { TwoPointConicalGradientProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const TwoPointConicalGradient: (props: SkiaProps<TwoPointConicalGradientProps>) => JSX.Element;
4
+ export declare const TwoPointConicalGradient: (props: SkiaProps<TwoPointConicalGradientProps>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { BoxProps, BoxShadowProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const BoxShadow: (props: SkiaProps<BoxShadowProps>) => JSX.Element;
5
- export declare const Box: (props: SkiaProps<BoxProps>) => JSX.Element;
4
+ export declare const BoxShadow: (props: SkiaProps<BoxShadowProps>) => React.JSX.Element;
5
+ export declare const Box: (props: SkiaProps<BoxProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { CircleProps } from "../../../dom/types";
4
- export declare const Circle: (props: SkiaProps<CircleProps>) => JSX.Element;
4
+ export declare const Circle: (props: SkiaProps<CircleProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors/Animations/Animations";
3
3
  import type { DiffRectProps } from "../../../dom/types";
4
- export declare const DiffRect: (props: SkiaProps<DiffRectProps>) => JSX.Element;
4
+ export declare const DiffRect: (props: SkiaProps<DiffRectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { DrawingNodeProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors/Animations/Animations";
4
- export declare const Fill: (props: SkiaProps<DrawingNodeProps>) => JSX.Element;
4
+ export declare const Fill: (props: SkiaProps<DrawingNodeProps>) => React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  import type { Fit } from "../../../dom/nodes";
3
4
  import type { SkRect } from "../../../skia/types";
4
5
  interface FitProps {
@@ -16,5 +17,5 @@ export declare const fitbox: (fit: Fit, src: SkRect, dst: SkRect) => readonly [{
16
17
  }, {
17
18
  readonly scaleY: number;
18
19
  }];
19
- export declare const FitBox: ({ fit, src, dst, children }: FitProps) => JSX.Element;
20
+ export declare const FitBox: ({ fit, src, dst, children }: FitProps) => React.JSX.Element;
20
21
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { LineProps } from "../../../dom/types";
4
- export declare const Line: (props: SkiaProps<LineProps>) => JSX.Element;
4
+ export declare const Line: (props: SkiaProps<LineProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { OvalProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const Oval: (props: SkiaProps<OvalProps>) => JSX.Element;
4
+ export declare const Oval: (props: SkiaProps<OvalProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaProps } from "../../processors";
3
3
  import type { PatchProps } from "../../../dom/types";
4
- export declare const Patch: (props: SkiaProps<PatchProps>) => JSX.Element;
4
+ export declare const Patch: (props: SkiaProps<PatchProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors";
3
3
  import type { PathProps } from "../../../dom/types";
4
- export declare const Path: ({ start, end, ...props }: SkiaDefaultProps<PathProps, "start" | "end">) => JSX.Element;
4
+ export declare const Path: ({ start, end, ...props }: SkiaDefaultProps<PathProps, "start" | "end">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
3
3
  import type { PointsProps } from "../../../dom/types";
4
- export declare const Points: ({ mode, ...props }: SkiaDefaultProps<PointsProps, "mode">) => JSX.Element;
4
+ export declare const Points: ({ mode, ...props }: SkiaDefaultProps<PointsProps, "mode">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { RectProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const Rect: (props: SkiaProps<RectProps>) => JSX.Element;
4
+ export declare const Rect: (props: SkiaProps<RectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { RoundedRectProps } from "../../../dom/types";
3
3
  import type { SkiaProps } from "../../processors";
4
- export declare const RoundedRect: (props: SkiaProps<RoundedRectProps>) => JSX.Element;
4
+ export declare const RoundedRect: (props: SkiaProps<RoundedRectProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors";
3
3
  import type { VerticesProps } from "../../../dom/types";
4
- export declare const Vertices: ({ mode, ...props }: SkiaDefaultProps<VerticesProps, "mode">) => JSX.Element;
4
+ export declare const Vertices: ({ mode, ...props }: SkiaDefaultProps<VerticesProps, "mode">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { GlyphsProps } from "../../../dom/types";
3
3
  import type { SkiaDefaultProps } from "../../processors/Animations/Animations";
4
- export declare const Glyphs: ({ x, y, ...props }: SkiaDefaultProps<GlyphsProps, "x" | "y">) => JSX.Element;
4
+ export declare const Glyphs: ({ x, y, ...props }: SkiaDefaultProps<GlyphsProps, "x" | "y">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors";
3
3
  import type { TextProps } from "../../../dom/types";
4
- export declare const Text: ({ x, y, ...props }: SkiaDefaultProps<TextProps, "x" | "y">) => JSX.Element;
4
+ export declare const Text: ({ x, y, ...props }: SkiaDefaultProps<TextProps, "x" | "y">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors";
3
3
  import type { TextBlobProps } from "../../../dom/types";
4
- export declare const TextBlob: ({ x, y, ...props }: SkiaDefaultProps<TextBlobProps, "x" | "y">) => JSX.Element;
4
+ export declare const TextBlob: ({ x, y, ...props }: SkiaDefaultProps<TextBlobProps, "x" | "y">) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SkiaDefaultProps } from "../../processors";
3
3
  import type { TextPathProps } from "../../../dom/types";
4
- export declare const TextPath: ({ initialOffset, ...props }: SkiaDefaultProps<TextPathProps, "initialOffset">) => JSX.Element;
4
+ export declare const TextPath: ({ initialOffset, ...props }: SkiaDefaultProps<TextPathProps, "initialOffset">) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { SkiaSelector, SkiaValue } from "../../../values";
2
- export declare type SharedValueType<T = number> = {
2
+ export type SharedValueType<T = number> = {
3
3
  value: T;
4
4
  };
5
5
  export declare const isValue: (value: unknown) => value is SkiaValue<unknown>;
@@ -8,13 +8,13 @@ export declare const isSelector: <T, R>(value: unknown) => value is {
8
8
  value: SkiaValue<T>;
9
9
  };
10
10
  export declare const isAnimated: <T>(props: AnimatedProps<T, never>) => boolean;
11
- export declare type AnimatedProp<T, P = any> = T | SkiaValue<T> | SkiaSelector<T, P> | SharedValueType<T>;
12
- export declare type AnimatedProps<T, O extends keyof T | never = never> = {
11
+ export type AnimatedProp<T, P = any> = T | SkiaValue<T> | SkiaSelector<T, P> | SharedValueType<T>;
12
+ export type AnimatedProps<T, O extends keyof T | never = never> = {
13
13
  [K in keyof T]: K extends "children" ? T[K] : K extends O ? T[K] : AnimatedProp<T[K]>;
14
14
  };
15
- export declare type SkiaProps<P = object, O extends keyof P | never = never> = AnimatedProps<P, O>;
16
- declare type WithOptional<T extends object, N extends keyof T> = Omit<T, N> & {
15
+ export type SkiaProps<P = object, O extends keyof P | never = never> = AnimatedProps<P, O>;
16
+ type WithOptional<T extends object, N extends keyof T> = Omit<T, N> & {
17
17
  [K in N]?: T[K];
18
18
  };
19
- export declare type SkiaDefaultProps<T extends object, N extends keyof T> = WithOptional<SkiaProps<T>, N>;
19
+ export type SkiaDefaultProps<T extends object, N extends keyof T> = WithOptional<SkiaProps<T>, N>;
20
20
  export {};
@@ -1,8 +1,9 @@
1
1
  import { Platform } from "../Platform";
2
+ import NativeSkiaModule from "../specs/NativeSkiaModule";
2
3
 
3
4
  if (Platform.OS !== "web" && global.SkiaApi == null) {
4
5
  // Initialize RN Skia
5
- const SkiaModule = Platform.NativeModules.RNSkia;
6
+ const SkiaModule = NativeSkiaModule;
6
7
 
7
8
  if (SkiaModule == null || typeof SkiaModule.install !== "function") {
8
9
  throw new Error("Native RNSkia Module cannot be found! Make sure you correctly " + "installed native dependencies and rebuilt your app.");
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","OS","global","SkiaApi","SkiaModule","NativeModules","RNSkia","install","Error","result"],"sources":["NativeSetup.ts"],"sourcesContent":["import { Platform } from \"../Platform\";\n\nif (Platform.OS !== \"web\" && global.SkiaApi == null) {\n // Initialize RN Skia\n const SkiaModule = Platform.NativeModules.RNSkia;\n if (SkiaModule == null || typeof SkiaModule.install !== \"function\") {\n throw new Error(\n \"Native RNSkia Module cannot be found! Make sure you correctly \" +\n \"installed native dependencies and rebuilt your app.\"\n );\n }\n const result = SkiaModule.install();\n if (result !== true) {\n throw new Error(\n `Native Skia Module failed to correctly install JSI Bindings! Result: ${result}`\n );\n }\n}\n"],"mappings":"AAAA,SAASA,QAAT,QAAyB,aAAzB;;AAEA,IAAIA,QAAQ,CAACC,EAAT,KAAgB,KAAhB,IAAyBC,MAAM,CAACC,OAAP,IAAkB,IAA/C,EAAqD;EACnD;EACA,MAAMC,UAAU,GAAGJ,QAAQ,CAACK,aAAT,CAAuBC,MAA1C;;EACA,IAAIF,UAAU,IAAI,IAAd,IAAsB,OAAOA,UAAU,CAACG,OAAlB,KAA8B,UAAxD,EAAoE;IAClE,MAAM,IAAIC,KAAJ,CACJ,mEACE,qDAFE,CAAN;EAID;;EACD,MAAMC,MAAM,GAAGL,UAAU,CAACG,OAAX,EAAf;;EACA,IAAIE,MAAM,KAAK,IAAf,EAAqB;IACnB,MAAM,IAAID,KAAJ,CACH,wEAAuEC,MAAO,EAD3E,CAAN;EAGD;AACF"}
1
+ {"version":3,"names":["Platform","NativeSkiaModule","OS","global","SkiaApi","SkiaModule","install","Error","result"],"sources":["NativeSetup.ts"],"sourcesContent":["import { Platform } from \"../Platform\";\nimport NativeSkiaModule from \"../specs/NativeSkiaModule\";\n\nif (Platform.OS !== \"web\" && global.SkiaApi == null) {\n // Initialize RN Skia\n const SkiaModule = NativeSkiaModule;\n if (SkiaModule == null || typeof SkiaModule.install !== \"function\") {\n throw new Error(\n \"Native RNSkia Module cannot be found! Make sure you correctly \" +\n \"installed native dependencies and rebuilt your app.\"\n );\n }\n const result = SkiaModule.install();\n if (result !== true) {\n throw new Error(\n `Native Skia Module failed to correctly install JSI Bindings! Result: ${result}`\n );\n }\n}\n"],"mappings":"AAAA,SAASA,QAAT,QAAyB,aAAzB;AACA,OAAOC,gBAAP,MAA6B,2BAA7B;;AAEA,IAAID,QAAQ,CAACE,EAAT,KAAgB,KAAhB,IAAyBC,MAAM,CAACC,OAAP,IAAkB,IAA/C,EAAqD;EACnD;EACA,MAAMC,UAAU,GAAGJ,gBAAnB;;EACA,IAAII,UAAU,IAAI,IAAd,IAAsB,OAAOA,UAAU,CAACC,OAAlB,KAA8B,UAAxD,EAAoE;IAClE,MAAM,IAAIC,KAAJ,CACJ,mEACE,qDAFE,CAAN;EAID;;EACD,MAAMC,MAAM,GAAGH,UAAU,CAACC,OAAX,EAAf;;EACA,IAAIE,MAAM,KAAK,IAAf,EAAqB;IACnB,MAAM,IAAID,KAAJ,CACH,wEAAuEC,MAAO,EAD3E,CAAN;EAGD;AACF"}
@@ -4,8 +4,8 @@ import type { SkTypefaceFontProvider } from "../types/Paragraph/TypefaceFontProv
4
4
  * Returns a Skia Font object
5
5
  * */
6
6
  export declare const useFont: (font: DataSourceParam, size?: number, onError?: ((err: Error) => void) | undefined) => import("../types").SkFont | null;
7
- declare type Slant = "normal" | "italic" | "oblique";
8
- declare type Weight = "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
7
+ type Slant = "normal" | "italic" | "oblique";
8
+ type Weight = "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
9
9
  interface RNFontStyle {
10
10
  fontFamily: string;
11
11
  fontSize: number;
@@ -1,2 +1,2 @@
1
- export declare type SkColor = Float32Array;
2
- export declare type Color = string | Float32Array | number | number[];
1
+ export type SkColor = Float32Array;
2
+ export type Color = string | Float32Array | number | number[];
@@ -1,3 +1,3 @@
1
1
  import type { SkJSIInstance } from "../JsiInstance";
2
2
  export declare const isColorFilter: (obj: SkJSIInstance<string> | null) => obj is SkColorFilter;
3
- export declare type SkColorFilter = SkJSIInstance<"ColorFilter">;
3
+ export type SkColorFilter = SkJSIInstance<"ColorFilter">;
@@ -1,7 +1,7 @@
1
1
  import type { SkColor } from "../Color";
2
2
  import type { BlendMode } from "../Paint";
3
3
  import type { SkColorFilter } from "./ColorFilter";
4
- export declare type InputColorMatrix = number[];
4
+ export type InputColorMatrix = number[];
5
5
  export interface ColorFilterFactory {
6
6
  /**
7
7
  * Creates a color filter using the provided color matrix.