From 6b3bbe1e05ce42d8862c1b5eb935d372e05f3a11 Mon Sep 17 00:00:00 2001 From: Thomas Parslow Date: Thu, 3 May 2018 18:59:53 +0100 Subject: [PATCH] The correct capture preset for photos is AVCaptureSessionPresetPhoto AVCaptureSessionPresetHigh sometimes means the camera is too zoomed in --- ios/RN/RNCamera.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/RN/RNCamera.m b/ios/RN/RNCamera.m index 3edabb3..47179d7 100644 --- a/ios/RN/RNCamera.m +++ b/ios/RN/RNCamera.m @@ -776,8 +776,8 @@ static NSDictionary *defaultFaceDetectorOptions = nil; [_faceDetectorManager maybeStartFaceDetectionOnSession:_session withPreviewLayer:_previewLayer]; #endif - if (self.session.sessionPreset != AVCaptureSessionPresetHigh) { - [self updateSessionPreset:AVCaptureSessionPresetHigh]; + if (self.session.sessionPreset != AVCaptureSessionPresetPhoto) { + [self updateSessionPreset:AVCaptureSessionPresetPhoto]; } }