From c69de2a46027fd3c627d454097fdc1c1d25748fc Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Wed, 10 Jul 2024 10:37:15 +0200 Subject: [PATCH] docs: Fix `delete()` link --- package/src/Camera.tsx | 8 ++++++-- package/src/types/Frame.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package/src/Camera.tsx b/package/src/Camera.tsx index dc4af9b7b3..4a7539d7ce 100644 --- a/package/src/Camera.tsx +++ b/package/src/Camera.tsx @@ -53,8 +53,12 @@ function isSkiaFrameProcessor(frameProcessor?: ReadonlyFrameProcessor | Drawable * * The `` component's most important properties are: * - * * {@linkcode CameraProps.device | device}: Specifies the {@linkcode CameraDevice} to use. Get a {@linkcode CameraDevice} by using the {@linkcode useCameraDevice | useCameraDevice(..)} hook, or manually by using the {@linkcode CameraDevices.getAvailableCameraDevices CameraDevices.getAvailableCameraDevices()} function. - * * {@linkcode CameraProps.isActive | isActive}: A boolean value that specifies whether the Camera should actively stream video frames or not. This can be compared to a Video component, where `isActive` specifies whether the video is paused or not. If you fully unmount the `` component instead of using `isActive={false}`, the Camera will take a bit longer to start again. + * * {@linkcode CameraProps.device | device}: Specifies the {@linkcode CameraDevice} to use. Get a {@linkcode CameraDevice} by using + * the {@linkcode useCameraDevice | useCameraDevice(..)} hook, or manually by using + * the {@linkcode CameraDevices.getAvailableCameraDevices | CameraDevices.getAvailableCameraDevices()} function. + * * {@linkcode CameraProps.isActive | isActive}: A boolean value that specifies whether the Camera should + * actively stream video frames or not. This can be compared to a Video component, where `isActive` specifies whether the video + * is paused or not. If you fully unmount the `` component instead of using `isActive={false}`, the Camera will take a bit longer to start again. * * @example * ```tsx diff --git a/package/src/types/Frame.ts b/package/src/types/Frame.ts index 25b3d3c0ac..c9e6bb2310 100644 --- a/package/src/types/Frame.ts +++ b/package/src/types/Frame.ts @@ -99,7 +99,7 @@ export interface Frame { * - On iOS, this is a `CVPixelBufferRef` * * The native buffer needs to be manually deleted using - * {@linkcode NativeBuffer.delete()}, and this {@linkcode Frame} + * {@linkcode NativeBuffer.delete | NativeBuffer.delete()}, and this {@linkcode Frame} * needs to be kept alive as long as-, or longer than * the {@linkcode NativeBuffer}. */