interface ScanbotBarcodeCameraViewProperties {
    barcodeScannerConfiguration?: BarcodeCameraViewScannerConfiguration;
    cameraConfig?: CameraConfig;
    children?: ReactNode;
    contentContainerStyle?: StyleProp<ViewStyle>;
    finderConfig?: FinderConfig;
    flashEnabled?: boolean;
    hardwareButtonsEnabled?: boolean;
    onBarcodeScannerResult: ((result) => void);
    scanningEnabled?: boolean;
    selectionOverlayConfig?: SelectionOverlayConfig;
    style?: StyleProp<ViewStyle>;
}

Properties

barcodeScannerConfiguration?: BarcodeCameraViewScannerConfiguration

Configuration for the barcode scanner *

cameraConfig?: CameraConfig

Configuration properties of the camera device

children?: ReactNode
contentContainerStyle?: StyleProp<ViewStyle>
finderConfig?: FinderConfig

Configuration properties of the finder overlay

flashEnabled?: boolean

Whether flash is toggled on or off.

hardwareButtonsEnabled?: boolean

Controls whether the hardware volume buttons and the new hardware camera control button should snap or not. Available in iOS 17.2 and later.

onBarcodeScannerResult: ((result) => void)

Type declaration

    • (result): void
    • Parameters

      Returns void

scanningEnabled?: boolean

Enable or disable barcode detection. If disabled, the camera preview is active but no barcodes will be detected. Default is enabled.

selectionOverlayConfig?: SelectionOverlayConfig

The selection overlay configuration.

style?: StyleProp<ViewStyle>