Interface ScanbotCroppingViewProperties

interface ScanbotCroppingViewProperties {
    anchorPointsColor?: ColorValue;
    edgeColor?: ColorValue;
    edgeColorOnLine?: ColorValue;
    edgeLineWidth?: number;
    onCroppedAreaResult: ((result) => void | Promise<void>);
    onError?: ((error) => void);
    src: ImageSrc;
    style?: StyleProp<ViewStyle>;
}

Properties

anchorPointsColor?: ColorValue

The color of the anchor points.

edgeColor?: ColorValue

The color of the non-snapped edges.

edgeColorOnLine?: ColorValue

The color of the edges when positioned on the magnetic line.

edgeLineWidth?: number

The width of the edges.

onCroppedAreaResult: ((result) => void | Promise<void>)

A result callback that is triggered with extractCroppedArea.

Type declaration

    • (result): void | Promise<void>
    • Parameters

      Returns void | Promise<void>

onError?: ((error) => void)

An error callback that is triggered when an error occurs.

Type declaration

    • (error): void
    • Parameters

      Returns void

The source of the image, specified either by a local file URI or an ImageRef UUID.

style?: StyleProp<ViewStyle>