react-native-vision-camera
Version:
VisionCamera is the fastest and most powerful Camera for react-native.
17 lines (16 loc) • 534 B
TypeScript
import type { CameraDevice } from '../specs/inputs/CameraDevice.nitro';
/**
* Use a list of all {@linkcode CameraDevice}s on this phone.
*
* The hook automatically updates with the new devices as
* devices get added or removed to the phone - e.g. USB Cameras.
*
* @see {@linkcode useCameraDevice}
* @see {@linkcode getCameraDevice}
* @example
* ```ts
* const devices = useCameraDevices()
* const backDevice = devices.find((d) => d.position === 'back')
* ```
*/
export declare function useCameraDevices(): CameraDevice[];