diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/camera.ts | 2 | ||||
-rw-r--r-- | src/utils/users.ts | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/camera.ts b/src/utils/camera.ts index 9e37d62e..6c1b9d50 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); @@ -80,6 +81,7 @@ export const navigateToImagePicker = ( export const navigateToVideoPicker = (callback: (vid: Video) => void) => { ImagePicker.openPicker({ mediaType: 'video', + compressVideoPreset: 'Passthrough', }) .then(async (vid) => { if (vid.path) { diff --git a/src/utils/users.ts b/src/utils/users.ts index c1c3b8bc..75858fe2 100644 --- a/src/utils/users.ts +++ b/src/utils/users.ts @@ -254,6 +254,7 @@ export const patchProfile = async ( cropping: true, cropperToolbarTitle: screenTitle, mediaType: 'photo', + compressVideoPreset: 'Passthrough', }; break; case 'profile': @@ -274,12 +275,16 @@ export const patchProfile = async ( cropperToolbarTitle: screenTitle, mediaType: 'photo', cropperCircleOverlay: true, + compressVideoPreset: 'Passthrough', }; break; default: screenTitle = ''; requestTitle = ''; fileName = ''; + imageSettings = { + compressVideoPreset: 'Passthrough', + }; } return await ImagePicker.openPicker(imageSettings) |