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

20 lines (16 loc) 760 B
// Expose this file as a module (see https://stackoverflow.com/a/59499895/4337317) export {}; /** * Handle missing typings that are not available in the main lib.dom.d.ts file. */ declare global { type PermissionNameWithAdditionalValues = PermissionName | 'camera' | 'microphone'; // TODO: remove once "microphone" name is added to the PermissionName union type exposed by the main lib.dom.d.ts file. interface Permissions { // Replace original PermissionDescriptor with our own that includes missing permission names (e.g. "microphone") query(permissionDesc: PermissionDescriptorWithAdditionalValues): Promise<PermissionStatus>; } interface PermissionDescriptorWithAdditionalValues { name: PermissionNameWithAdditionalValues; } }