react-native-photos-framework icon indicating copy to clipboard operation
react-native-photos-framework copied to clipboard

Deleting an asset from a smart album

Open itechdom opened this issue 8 years ago • 1 comments

Thank you for this awesome library. I am running into an issue deleting an asset from a smart album. I am trying to delete an image from the Screenshots album to be exact. I am getting back this error as a Promise rejection when calling:

album.removeAsset(myAsset)

I am getting back this error:

Error: The operation couldn’t be completed. (Cocoa error -1.)
    at createErrorFromErrorData (NativeModules.js:116)
    at NativeModules.js:79
    at MessageQueue.__invokeCallback (MessageQueue.js:290)
    at MessageQueue.js:127
    at guard (MessageQueue.js:46)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:126)
    at debuggerWorker.js:71

I googled Cocoa error -1, but I am not sure I found anything helpful.

Any help would be appreciated. Thanks again!

itechdom avatar Jun 23 '17 18:06 itechdom

Still an issue? I can take a look at this during the week if it is.

olofd avatar Sep 03 '17 14:09 olofd