react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
27 lines • 1.34 kB
TypeScript
/// <reference types="react" />
/// <reference types="react-native/types/modules/Codegen" />
import { ColorValue, ViewProps, type HostComponent } from 'react-native';
import { Double, WithDefault, type DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
export type CroppingViewEvent = Readonly<{
result: string;
}>;
interface NativeProps extends ViewProps {
onCroppedAreaResult: DirectEventHandler<CroppingViewEvent>;
onError?: DirectEventHandler<CroppingViewEvent>;
imageFileSrc?: string;
imageRefSrc?: string;
edgeColor?: ColorValue;
edgeLineWidth?: WithDefault<Double, 2.0>;
edgeColorOnLine?: ColorValue;
anchorPointsColor?: ColorValue;
}
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
export default _default;
interface NativeCommands {
resetPolygon: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
detectPolygon: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
rotate: (viewRef: React.ElementRef<HostComponent<NativeProps>>, clockwise: boolean) => void;
extractCroppedArea: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
}
export declare const Commands: NativeCommands;
//# sourceMappingURL=ScanbotCroppingViewNativeComponent.d.ts.map