expo-camera
Version:
A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to t
12 lines • 597 B
TypeScript
import * as React from 'react';
import { BarcodeScanningResult, CameraPictureOptions, MountErrorListener } from '../Camera.types';
export declare function useWebQRScanner(video: React.MutableRefObject<HTMLVideoElement | null>, { isEnabled, captureOptions, interval, onScanned, onError, }: {
isEnabled: boolean;
captureOptions: Pick<CameraPictureOptions, 'scale' | 'isImageMirror'>;
interval?: number;
onScanned?: (scanningResult: {
nativeEvent: BarcodeScanningResult;
}) => void;
onError?: MountErrorListener;
}): void;
//# sourceMappingURL=useWebQRScanner.d.ts.map