diff options
-rw-r--r-- | src/components/comments/ZoomInCropper.tsx | 1 | ||||
-rw-r--r-- | src/screens/onboarding/ProfileInfoOnboarding.tsx | 1 | ||||
-rw-r--r-- | src/screens/onboarding/legacy/ProfileOnboarding.tsx | 2 | ||||
-rw-r--r-- | src/screens/profile/EditProfile.tsx | 2 | ||||
-rw-r--r-- | src/screens/suggestedPeopleOnboarding/SuggestedPeopleUploadPictureScreen.tsx | 1 | ||||
-rw-r--r-- | src/utils/camera.ts | 17 | ||||
-rw-r--r-- | src/utils/users.ts | 6 |
7 files changed, 1 insertions, 29 deletions
diff --git a/src/components/comments/ZoomInCropper.tsx b/src/components/comments/ZoomInCropper.tsx index 77159119..3581168d 100644 --- a/src/components/comments/ZoomInCropper.tsx +++ b/src/components/comments/ZoomInCropper.tsx @@ -138,7 +138,6 @@ export const ZoomInCropper: React.FC<ZoomInCropperProps> = ({ })); } setCropLoading(true); - console.log(cropLoading); cropVideo( media.uri, (croppedURL: string) => { diff --git a/src/screens/onboarding/ProfileInfoOnboarding.tsx b/src/screens/onboarding/ProfileInfoOnboarding.tsx index 1d068a2c..cdfbea8f 100644 --- a/src/screens/onboarding/ProfileInfoOnboarding.tsx +++ b/src/screens/onboarding/ProfileInfoOnboarding.tsx @@ -108,7 +108,6 @@ const ProfileInfoOnboarding: React.FC<ProfileInfoOnboardingProps> = ({ cropperToolbarTitle: 'Select Profile Picture', mediaType: 'photo', cropperCircleOverlay: true, - compressVideoPreset: 'Passthrough', }).then((picture) => { if ('path' in picture) { setForm({ diff --git a/src/screens/onboarding/legacy/ProfileOnboarding.tsx b/src/screens/onboarding/legacy/ProfileOnboarding.tsx index 88e9183f..e994c1e6 100644 --- a/src/screens/onboarding/legacy/ProfileOnboarding.tsx +++ b/src/screens/onboarding/legacy/ProfileOnboarding.tsx @@ -167,7 +167,6 @@ const ProfileOnboarding: React.FC<ProfileOnboardingProps> = ({ cropping: true, cropperToolbarTitle: 'Select Header', mediaType: 'photo', - compressVideoPreset: 'Passthrough', }).then((picture) => { if ('path' in picture) { setForm({ @@ -193,7 +192,6 @@ const ProfileOnboarding: React.FC<ProfileOnboardingProps> = ({ cropperToolbarTitle: 'Select Profile Picture', mediaType: 'photo', cropperCircleOverlay: true, - compressVideoPreset: 'Passthrough', }).then((picture) => { if ('path' in picture) { setForm({ diff --git a/src/screens/profile/EditProfile.tsx b/src/screens/profile/EditProfile.tsx index fca02ffc..20a62b19 100644 --- a/src/screens/profile/EditProfile.tsx +++ b/src/screens/profile/EditProfile.tsx @@ -161,7 +161,6 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => { cropping: true, cropperToolbarTitle: 'Select Header', mediaType: 'photo', - compressVideoPreset: 'Passthrough', }).then((picture) => { if ('path' in picture) { setForm({ @@ -187,7 +186,6 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => { cropperToolbarTitle: 'Select Profile Picture', mediaType: 'photo', cropperCircleOverlay: true, - compressVideoPreset: 'Passthrough', }).then((picture) => { if ('path' in picture) { setForm({ diff --git a/src/screens/suggestedPeopleOnboarding/SuggestedPeopleUploadPictureScreen.tsx b/src/screens/suggestedPeopleOnboarding/SuggestedPeopleUploadPictureScreen.tsx index cdd9cedf..f5a9f280 100644 --- a/src/screens/suggestedPeopleOnboarding/SuggestedPeopleUploadPictureScreen.tsx +++ b/src/screens/suggestedPeopleOnboarding/SuggestedPeopleUploadPictureScreen.tsx @@ -78,7 +78,6 @@ const SuggestedPeopleUploadPictureScreen: React.FC<SuggestedPeopleUploadPictureS cropping: true, cropperToolbarTitle: 'Select Photo', mediaType: 'photo', - compressVideoPreset: 'Passthrough', }) .then((picture) => { if ('path' in picture) { 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', diff --git a/src/utils/users.ts b/src/utils/users.ts index 75858fe2..992d7721 100644 --- a/src/utils/users.ts +++ b/src/utils/users.ts @@ -254,7 +254,6 @@ export const patchProfile = async ( cropping: true, cropperToolbarTitle: screenTitle, mediaType: 'photo', - compressVideoPreset: 'Passthrough', }; break; case 'profile': @@ -275,16 +274,13 @@ export const patchProfile = async ( cropperToolbarTitle: screenTitle, mediaType: 'photo', cropperCircleOverlay: true, - compressVideoPreset: 'Passthrough', }; break; default: screenTitle = ''; requestTitle = ''; fileName = ''; - imageSettings = { - compressVideoPreset: 'Passthrough', - }; + imageSettings = {}; } return await ImagePicker.openPicker(imageSettings) |