Skip to main content

imageHelpers

Content

Used to convert and apply different changes to images

convertCropperImageToBase64

Converts CropperImage from react-native-image-crop-picker to base64 string using mime and data.

Params

NameTypeRequiredDefault valueDescription
imageCropperImageTrue-Picked image as result from react-native-image-crop-picker

Usage example

  const onImagePicked = useCallback((nextImage) => {
convertCropperImageToBase64(nextImage);
}, []);