diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/camera.ts | 17 |
1 files changed, 1 insertions, 16 deletions
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', |