Skip to content

Commit b90f233

Browse files
committed
Add deprecation tags
1 parent b2502a5 commit b90f233

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package/src/renderer/components/Drawing.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import React from "react";
22

33
import type { CustomDrawingNodeProps } from "../../dom/types";
44

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+
*/
510
export const Drawing = (props: CustomDrawingNodeProps) => {
611
return <skDrawing {...props} />;
712
};

package/src/views/SkiaView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@ export const SkiaViewNativeId = { current: 1000 };
1111

1212
const NativeSkiaView = SkiaDrawViewNativeComponent;
1313

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+
*/
1419
export class SkiaView extends React.Component<SkiaDrawViewProps> {
1520
constructor(props: SkiaDrawViewProps) {
1621
super(props);
1722
console.warn(
1823
`The SkiaView component is deprecated and will be removed in the next release.
1924
If you are looking to use the Skia imperative API, you can use:
2025
* 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`
2227
);
2328
this._nativeId = SkiaViewNativeId.current++;
2429
const { onDraw, onSize } = props;

0 commit comments

Comments
 (0)