prscX/react-native-photo-editor

I am not getting edited image path onDone

Opened this issue · 3 comments

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

ON DONE: file:///data/user/0/com.tfsol.jozeko/cache/rn_image_picker_lib_temp_a68976a2-e692-4ee3-8f50-136e11d17206.jpg
OLD WAS: file:///data/user/0/com.tfsol.jozeko/cache/rn_image_picker_lib_temp_a68976a2-e692-4ee3-8f50-136e11d17206.jpg

both are the same
thats why I am not getting edited image

It works for me to use this function passing the route returned in onDone:

export const PhotoEditorNewPath = path =>
    path.startsWith("content")
        ? `${path}?${new Date().getTime()}`
        : `file://${path}?${new Date().getTime()}`;

Hello friend, can you explain a little better how I can get the edited image once I activate the onDone function?

@DeniferSantiago i try but it still the same result. I can not get Edited image when press done. Any update for this @prscX pr