Fixed #6 "zoomed in" issue

This commit is contained in:
Seph Soliman 2020-06-13 20:01:16 -07:00
parent a2f7a7cb79
commit f8e50706f5
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ RCT_ENUM_CONVERTER(CKCameraZoomMode, (@{
if (self){
// Create the AVCaptureSession.
self.session = [[AVCaptureSession alloc] init];
// Fit camera preview inside of viewport
self.session.sessionPreset = AVCaptureSessionPresetPhoto;
// Communicate with the session and other session objects on this queue.
self.sessionQueue = dispatch_queue_create( "session queue", DISPATCH_QUEUE_SERIAL );