react-native-photo-editor icon indicating copy to clipboard operation
react-native-photo-editor copied to clipboard

Save button does not save , -> button however does save without opening up cropping tool

Open bmcn99 opened this issue 6 years ago • 0 comments

Version 0.0.7 Testing on Android (Nexus 5X Api 28 x86 Emulator, and Samsung A5 real phone)

I tried to clone the project from git here and run the example so that all the code being used was known but cannot do an 'npm install' on the project folder since it fails on pod-installer stuff, so I don't think I can run it on Windows?

Anyway I call the editor with the following code:

`RNFS.exists(RNFS.DocumentDirectoryPath + filename).then((exists) => {
        if(exists){
            console.log("EXISTS")
        }else{
            //File does not yet exist. Copy it from our cache and work with it then
            console.log("DOES NOT EXIST")
            RNFS.copyFile(this.state.memoryImageLocalPath, RNFS.DocumentDirectoryPath + filename)
        }
        RNPhotoEditor.Edit({
            path: RNFS.DocumentDirectoryPath + filename
        });
    })`

So nothing special going on, I can draw on it, add stickers and text and if I hit save it'll close but the file won't change. If I instead hit the -> Cropping button it will briefly go to a new screen, show the image there, and then close again, but this time it has saved.

bmcn99 avatar Jan 17 '19 20:01 bmcn99