CameraViewProps
interface CameraViewProps extends CameraProps, PickProperties
cameraExtension?
optional cameraExtension: CameraExtensionInherited from
colorSpace?
optional colorSpace: ColorSpace | "auto"Inherited from
depthFormat?
optional depthFormat: CameraFormat | nullInherited from
device
device:
| CameraPosition
| CameraDeviceInherited from
enableDistortionCorrection?
optional enableDistortionCorrection: booleanInherited from
CameraProps.enableDistortionCorrection
enableLowLightBoost?
optional enableLowLightBoost: booleanInherited from
CameraProps.enableLowLightBoost
enableMultiCamSupport?
optional enableMultiCamSupport: booleanInherited from
CameraProps.enableMultiCamSupport
enableNativeTapToFocusGesture?
optional enableNativeTapToFocusGesture: booleanEnables (or disables) the native tap-to-focus gesture.
Default
falseenableNativeZoomGesture?
optional enableNativeZoomGesture: booleanEnables (or disables) the native pinch-to-zoom gesture.
Throws
If this property is enabled and zoom is not undefined.
Default
falseenableSmoothAutoFocus?
optional enableSmoothAutoFocus: booleanInherited from
CameraProps.enableSmoothAutoFocus
enableVideoHDR?
optional enableVideoHDR: booleanInherited from
exposure?
optional exposure:
| number
| SharedValue<number>Sets the exposureBias value.
You can also manually set the exposure bias via
setExposureBias(...).
Note
This property can be animated via Reanimated by passing a SharedValue.
Default
0format?
optional format: CameraFormatInherited from
fps?
optional fps: RangeInherited from
getInitialExposureBias()?
optional getInitialExposureBias: () => number | undefinedInherited from
CameraProps.getInitialExposureBias
getInitialZoom()?
optional getInitialZoom: () => number | undefinedInherited from
implementationMode?
optional implementationMode: PreviewImplementationModeSets the PreviewImplementationMode for the PreviewView.
Default
'performance'Inherited from
PreviewViewProps.implementationMode
isActive
isActive: booleanInherited from
mirrorMode?
optional mirrorMode: MirrorModeInherited from
onConfigured()?
optional onConfigured: () => voidCalled whenever the CameraSession
has been configured with new connections via
configure(...)
and connections to the individual outputs are formed.
This is a good place to check output
capabilities, such as CameraVideoOutput.getSupportedVideoCodecs()
Inherited from
onError()?
optional onError: (error: Error) => voidCalled whenever the CameraSession
has encountered an error.
Inherited from
onInterruptionEnded()?
optional onInterruptionEnded: () => voidCalled when a previous interruption
has ended and the CameraSession
is running uninterrupted again.
Inherited from
CameraProps.onInterruptionEnded
onInterruptionStarted()?
optional onInterruptionStarted: (interruption: InterruptionReason) => voidCalled whenever the CameraSession
has encountered an interruption of the given
InterruptionReason.
Interruptions are temporarily.
Inherited from
CameraProps.onInterruptionStarted
onPreviewStarted()?
optional onPreviewStarted: () => voidCalled when the Camera's Preview
received its first Frame.
onPreviewStopped()?
optional onPreviewStopped: () => voidCalled when the Camera's Preview
stopped streaming Frames.
onStarted()?
optional onStarted: () => voidCalled when the CameraSession
has been started.
Inherited from
onStopped()?
optional onStopped: () => voidCalled when the CameraSession
has been stopped.
Inherited from
orientationSource?
optional orientationSource: OrientationSource | "custom"Set a desired OrientationSource
for automatically applying Orientation
to all outputs, or 'custom' if you
prefer to manually specify Orientation
yourself.
Inherited from
outputs?
optional outputs: CameraOutput[]Inherited from
ref?
optional ref: Ref<CameraRef>See
resizeMode?
optional resizeMode: PreviewResizeModeSets the PreviewResizeMode for the PreviewView.
Default
'cover'Inherited from
torchMode?
optional torchMode: TorchModeSets the torchMode value.
Default
'off'videoStabilizationMode?
optional videoStabilizationMode: VideoStabilizationModeInherited from
CameraProps.videoStabilizationMode
zoom?
optional zoom:
| number
| SharedValue<number>Sets the zoom value.
You can also manually set zoom via
setZoom(...).
Note
This property can be animated via Reanimated by passing a SharedValue.
Throws
If this property is set and enableNativeZoomGesture is enabled.
Default
1