From f25238c132c855672854612d113e9abf4c759d38 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 16 Jul 2021 13:27:31 -0400 Subject: Update to video quality and master branch integration. --- src/utils/camera.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src') diff --git a/src/utils/camera.ts b/src/utils/camera.ts index 5c7f5ee0..a7d562d0 100644 --- a/src/utils/camera.ts +++ b/src/utils/camera.ts @@ -66,6 +66,7 @@ export const navigateToImagePicker = ( 'UserLibrary', ], mediaType: 'any', + compressVideoPreset: 'Passthrough', }) .then((media) => { callback(media); @@ -77,22 +78,6 @@ export const navigateToImagePicker = ( }); }; -export const navigateToVideoPicker = (callback: (vid: Video) => void) => { - ImagePicker.openPicker({ - mediaType: 'video', - }) - .then(async (vid) => { - if (vid.path) { - callback(vid); - } - }) - .catch((err) => { - if (err.code && err.code !== 'E_PICKER_CANCELLED') { - Alert.alert(ERROR_UPLOAD); - } - }); -}; - export const showGIFFailureAlert = (onSuccess: () => void) => Alert.alert( 'Warning', -- cgit v1.2.3-70-g09d2