diff options
author | Brian Kim <brian@tagg.id> | 2021-07-16 14:52:52 -0400 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-07-16 14:52:52 -0400 |
commit | 44edf83220a50b96fbdc67f505f4117bae6eb235 (patch) | |
tree | 5546fc32a07888df248bcf630dd3d35c278c9d4d /src/utils/camera.ts | |
parent | 82e2ebed641463e31eb304846eafd664368f60b8 (diff) |
Clean up code
Diffstat (limited to 'src/utils/camera.ts')
-rw-r--r-- | src/utils/camera.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/utils/camera.ts b/src/utils/camera.ts index 6c1b9d50..e719162c 100644 --- a/src/utils/camera.ts +++ b/src/utils/camera.ts @@ -78,23 +78,6 @@ export const navigateToImagePicker = ( }); }; -export const navigateToVideoPicker = (callback: (vid: Video) => void) => { - ImagePicker.openPicker({ - mediaType: 'video', - compressVideoPreset: 'Passthrough', - }) - .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', |