UNPKG

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

28 lines (22 loc) 668 B
import { SharedRef } from 'expo'; import type { PhotoResult, SavePictureOptions } from './Camera.types'; import CameraManager from './ExpoCameraManager'; /** * A reference to a native instance of the image. */ export declare class PictureRef extends SharedRef<'image'> { /** * Width of the image. */ width: number; /** * Height of the image. */ height: number; /** * Saves the image to the file system in the cache directory. * @param options A map defining how modified image should be saved. */ savePictureAsync(options?: SavePictureOptions): Promise<PhotoResult>; } export default CameraManager.Picture as typeof PictureRef;