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 7770075
Show file tree
Hide file tree
Showing 2 changed files with 6,533 additions and 5,355 deletions.
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
Loading

0 comments on commit 7770075

Please sign in to comment.