Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Cabrera committed Jan 16, 2024
1 parent 097eb27 commit 3e9ca4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ImagePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3e9ca4e

Please sign in to comment.