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

26 lines 697 B
// https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/aspectRatio export const VIDEO_ASPECT_RATIOS = { '3840x2160': 3840 / 2160, '1920x1080': 1920 / 1080, '1280x720': 1280 / 720, '640x480': 640 / 480, '352x288': 352 / 288, }; export const PictureSizes = Object.keys(VIDEO_ASPECT_RATIOS); export const ImageTypeFormat = { jpg: 'image/jpeg', png: 'image/png', }; export const MinimumConstraints = { audio: false, video: true, }; export const CameraTypeToFacingMode = { front: 'user', back: 'environment', }; export const FacingModeToCameraType = { user: 'front', environment: 'back', }; //# sourceMappingURL=WebConstants.js.map