react-native-photo-editor
react-native-photo-editor copied to clipboard
Image not saved.
After editing the image when I clicked on save; then the image is not getting saved.
Same problem .. Onclick what is happening I dont know . I am getting only console output
you need to give an example and not just a sentence with no information about the code. I suppose the image get saved, but you do not refresh the link. It is a problem of react native. Add a random query in the new Local path, for example PATH = PATH + '?' + new Date().getTime()
you need to use cameraRoll.save inside onDone because image saved on cash not in galary
You can try this. It works.
var photo = RNFS.DocumentDirectoryPath + "/photo.jpg";
RNPhotoEditor.Edit({
path: photo,
onDone: ( result ) => {
// Note: the path of file saved after editing is different than the file opened.
console.log('on done', photo);
console.log('on done result', result); // use this path to preview the saved image or overwrite the original image.
// eg: result --> /storage/emulated/0/Pictures/PhotoEditorSDK/IMG_20200813_130958.jpg
},
onCancel: () => {
console.log('on cancel');
},
});
use 'file:///' and then append the URI
let image = 'file:///' + imageURI
Hi anyone can help me? after pressing -> next error from right bottom (next button) I am getting same image path but I need different path of orignal image an also editied phot please help me
you have to make changes in PhotoEditorActivity.java and change the path there.