From 3e9ca4e8c3dd8305d697392f712c0c57bb0d8a78 Mon Sep 17 00:00:00 2001 From: Alberto Cabrera Date: Wed, 17 Jan 2024 00:04:49 +0800 Subject: [PATCH] Fix lint error --- src/components/ImagePicker/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ImagePicker/index.tsx b/src/components/ImagePicker/index.tsx index 69be2906a1..d1ac2647ca 100644 --- a/src/components/ImagePicker/index.tsx +++ b/src/components/ImagePicker/index.tsx @@ -9,7 +9,6 @@ import { LOG } from '../../utils/logging'; // See all options: https://github.com/ivpusic/react-native-image-crop-picker const DEFAULT_OPTIONS = { - mediaType: 'photo', width: theme.fullWidth, height: theme.fullWidth * theme.communityImageAspectRatio, compressImageQuality: 0.75, // 0 to 1 @@ -62,11 +61,13 @@ const ImagePicker = ({ ...DEFAULT_OPTIONS, cropperCircleOverlay: circleOverlay, cropping: showCropper, + mediaType: 'photo', }) : ImageCropPicker.openPicker({ ...DEFAULT_OPTIONS, cropperCircleOverlay: circleOverlay, cropping: showCropper, + mediaType: 'photo', })); const image = Array.isArray(response) ? response[0] : response;