Detect if canceled or closed the Sharing.shareAsync

I have this code for share a IMG:

FileSystem.downloadAsync(
     this.state.img,
    FileSystem.documentDirectory + '.jpeg').then(({ uri }) => {
		Sharing.shareAsync(uri);
	}).catch(error => {
		console.error(error);
});

Is it possible to catch if the sharing dialog is closed or canceled?

Hey @trejocode, I don’t believe this is possible- but you could look through the module’s source code to explore it a little further!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.