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
39 lines (33 loc) • 615 B
text/typescript
export enum CameraType {
front = 'front',
back = 'back',
}
export enum ImageType {
png = 'png',
jpg = 'jpg',
}
export type ImageParameters = {
imageType: ImageType;
quality: number | null;
};
export type ImageSize = {
width: number;
height: number;
};
export type CaptureOptions = {
quality?: number;
exif?: boolean;
onPictureSaved?: Function;
skipProcessing?: boolean; // TODO: Bacon: IMP
//Web
scale: number;
imageType: ImageType;
isImageMirror: boolean;
};
export type CapturedPicture = {
width: number;
height: number;
uri: string;
base64?: string;
exif?: any;
};