react-native-vision-cameraInterfaces
PreviewViewProps
interface PreviewViewProps extends HybridViewPropsProperties
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?: PreviewImplementationModeSets the PreviewImplementationMode for the PreviewView.
Default
'performance'onPreviewStarted?
optional onPreviewStarted?: () => voidFires when the PreviewView started.
onPreviewStopped?
optional onPreviewStopped?: () => voidFires when the PreviewView stopped.
previewOutput?
optional previewOutput?: CameraPreviewOutputSets 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?: PreviewResizeModeSets the PreviewResizeMode for the PreviewView.
Default
'cover'