File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ import React from "react";
2
2
3
3
import type { CustomDrawingNodeProps } from "../../dom/types" ;
4
4
5
+ /**
6
+ * @deprecated If you are looking to use the Skia imperative API, you can use:
7
+ * The picture API: https://shopify.github.io/react-native-skia/docs/shapes/pictures/
8
+ * The offscreen API: https://shopify.github.io/react-native-skia/docs/animations/textures
9
+ */
5
10
export const Drawing = ( props : CustomDrawingNodeProps ) => {
6
11
return < skDrawing { ...props } /> ;
7
12
} ;
Original file line number Diff line number Diff line change @@ -11,14 +11,19 @@ export const SkiaViewNativeId = { current: 1000 };
11
11
12
12
const NativeSkiaView = SkiaDrawViewNativeComponent ;
13
13
14
+ /**
15
+ * @deprecated If you are looking to use the Skia imperative API, you can use:
16
+ * The picture API: https://shopify.github.io/react-native-skia/docs/shapes/pictures/
17
+ * The offscreen API: https://shopify.github.io/react-native-skia/docs/animations/textures
18
+ */
14
19
export class SkiaView extends React . Component < SkiaDrawViewProps > {
15
20
constructor ( props : SkiaDrawViewProps ) {
16
21
super ( props ) ;
17
22
console . warn (
18
23
`The SkiaView component is deprecated and will be removed in the next release.
19
24
If you are looking to use the Skia imperative API, you can use:
20
25
* The picture API: https://shopify.github.io/react-native-skia/docs/shapes/pictures/
21
- * The offscreen API: http ://localhost:3000 /react-native-skia/docs/animations/textures`
26
+ * The offscreen API: https ://shopify.github.io /react-native-skia/docs/animations/textures`
22
27
) ;
23
28
this . _nativeId = SkiaViewNativeId . current ++ ;
24
29
const { onDraw, onSize } = props ;
You can’t perform that action at this time.
0 commit comments