I'm using react-native-image-crop-picker
. I want to save the photos to the gallery or to a custom folder taken from the camera using react-native-image-crop-picker
. Normally the photos taken from the react-native-image-crop-picker
are saved in the cache folder. I want to change it to a custom folder and display the images in the gallery with an auto-generated name like the first photo - p1.jpg, second photo - p2.jpg, Is there any way to implement it.
const takePhotoFromCamera = () => {
ImagePicker.openCamera({
width: 300,
height: 400,
cropping: true,
includeBase64: true,
freeStyleCropEnabled: true,
compressImageQuality: 0,
enableRotationGesture: true,
}).then(image => {
console.log(image);
});
console.warn('Take photo');
}
react-native-image-crop-picker this is what i used