From db542dce029f0925781a1e15d9c652d252b9a8d2 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 2 Jul 2021 18:35:05 -0400 Subject: Cleanup code --- src/utils/camera.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/camera.ts b/src/utils/camera.ts index 283b63e0..c997e8b8 100644 --- a/src/utils/camera.ts +++ b/src/utils/camera.ts @@ -19,11 +19,11 @@ export const takePicture = ( callback: (pic: TakePictureResponse) => void, ) => { if (cameraRef !== null) { - cameraRef.current?.pausePreview(); const options: TakePictureOptions = { forceUpOrientation: true, orientation: 'portrait', writeExif: false, + pauseAfterCapture: true, }; cameraRef.current?.takePictureAsync(options).then((pic) => { callback(pic); @@ -39,6 +39,7 @@ export const takeVideo = ( const options: RecordOptions = { orientation: 'portrait', maxDuration: 10, + quality: '1080p', }; cameraRef.current?.recordAsync(options).then((vid) => { callback(vid); -- cgit v1.2.3-70-g09d2