aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael <michael.foiani@gmail.com>2021-07-16 13:27:31 -0400
committerMichael <michael.foiani@gmail.com>2021-07-16 13:27:31 -0400
commitf25238c132c855672854612d113e9abf4c759d38 (patch)
tree11fda59df6bc8a9df232859156705cd671af0b32 /src
parentfd2478916a96cb3b75dc2d385d402b4f90b02ce8 (diff)
Update to video quality and master branch integration.
Diffstat (limited to 'src')
-rw-r--r--src/utils/camera.ts17
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',