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
10 lines • 529 B
TypeScript
import * as React from 'react';
import { CameraReadyListener, CameraType, MountErrorListener } from '../Camera.types';
export declare function useWebCameraStream(video: React.MutableRefObject<HTMLVideoElement | null>, preferredType: CameraType, settings: Record<string, any>, { onCameraReady, onMountError, }: {
onCameraReady?: CameraReadyListener;
onMountError?: MountErrorListener;
}): {
type: CameraType | null;
mediaTrackSettings: MediaTrackSettings | null;
};
//# sourceMappingURL=useWebCameraStream.d.ts.map