You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* See the [Camera Devices](https://cuvent.github.io/react-native-vision-camera/docs/devices) section in the documentation for more information about Camera Devices.
@@ -208,7 +207,7 @@ type RefType = React.Component<CameraProps> & Readonly<NativeMethods>;
208
207
* * {@linkcode CameraDynamicProps.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 `<Camera>` component instead of using `isActive={false}`, the Camera will take a bit longer to start again.
@@ -263,7 +262,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
263
262
*
264
263
* @throws {@linkcode CameraCaptureError} When any kind of error occured while capturing the photo. Use the {@linkcode CameraCaptureError.code | code} property to get the actual error
265
264
* @example
266
-
* ```js
265
+
* ```ts
267
266
* const photo = await camera.current.takePhoto({
268
267
* qualityPrioritization: 'quality',
269
268
* flash: 'on',
@@ -288,7 +287,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
@@ -318,7 +317,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
318
317
* @throws {@linkcode CameraCaptureError} When any kind of error occured while starting the video recording. Use the {@linkcode CameraCaptureError.code | code} property to get the actual error
@@ -350,7 +349,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
350
349
* @throws {@linkcode CameraCaptureError} When any kind of error occured while stopping the video recording. Use the {@linkcode CameraCaptureError.code | code} property to get the actual error
351
350
*
352
351
* @example
353
-
* ```js
352
+
* ```ts
354
353
* await camera.current.startRecording()
355
354
* setTimeout(async () => {
356
355
* const video = await camera.current.stopRecording()
@@ -376,7 +375,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
376
375
*
377
376
* @throws {@linkcode CameraRuntimeError} When any kind of error occured while focussing. Use the {@linkcode CameraRuntimeError.code | code} property to get the actual error
378
377
* @example
379
-
* ```js
378
+
* ```ts
380
379
* await camera.current.focus({
381
380
* x: tapEvent.x,
382
381
* y: tapEvent.y
@@ -431,7 +430,7 @@ export class Camera extends React.PureComponent<CameraProps, CameraState> {
431
430
*
432
431
* @throws {@linkcode CameraRuntimeError} When any kind of error occured while getting all available camera devices. Use the {@linkcode CameraRuntimeError.code | code} property to get the actual error
0 commit comments