PreviewViewProps

interface PreviewViewProps extends HybridViewProps

Properties

gestureControllers?

optional gestureControllers: GestureController[]

Attaches the given GestureControllers on this PreviewView.

For example, a ZoomGestureController can be attached to install a native pinch-to-zoom gesture.


implementationMode?

Android
optional implementationMode: PreviewImplementationMode

Sets the PreviewImplementationMode for the PreviewView.

Default

'performance'

onPreviewStarted()?

optional onPreviewStarted: () => void

Fires when the PreviewView started.


onPreviewStopped()?

optional onPreviewStopped: () => void

Fires when the PreviewView stopped.


previewOutput?

optional previewOutput: CameraPreviewOutput

Sets the CameraPreviewOutput for the PreviewView.

The CameraPreviewOutput can be connected to a CameraSession to start in parallel, possibly even before the PreviewView is mounted/visible.


resizeMode?

optional resizeMode: PreviewResizeMode

Sets the PreviewResizeMode for the PreviewView.

Default

'cover'