Interface ScanbotCroppingViewProperties

interface ScanbotCroppingViewProperties {
    anchorPointsColor?: ColorValue;
    edgeColor?: ColorValue;
    edgeColorOnLine?: ColorValue;
    edgeLineWidth?: number;
    onCroppedAreaResult: ((result) => void);
    onError?: ((errorMessage) => 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)

A result callback that is triggered with extractCroppedArea.

Type declaration

onError?: ((errorMessage) => void)

An error callback that is triggered when an error occurs.

Type declaration

    • (errorMessage): void
    • Parameters

      • errorMessage: string

      Returns void

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

style?: StyleProp<ViewStyle>