react-native-vision-cameraFunctions
usePhotoOutput
function usePhotoOutput(__namedParameters?: Partial<PhotoOutputOptions>): CameraPhotoOutputUse a CameraPhotoOutput for capturing Photos.
The returned CameraPhotoOutput can be passed to a
Camera to enable photo capture. Photos can then be captured
via capturePhoto(...).
Example
const photoOutput = usePhotoOutput({
targetResolution: CommonResolutions.UHD_4_3,
qualityPrioritization: 'quality',
})
// ...
const photo = await photoOutput.capturePhoto({ flashMode: 'on' }, {})
// ...
photo.dispose()