Detect if user cancel or closed Sharing.shareAsync view

is possible detect if Sharing.shareAsync completed of user cancel/close before share?
I’ve to call a function ONLY if user share one image but i don’t know a solution to do this… if i close the share view don’t fire a error event… ithe stack for share succesfully and cancel share is the same and there is not callback that said “shared” ok “cancelled”

    try {
      await Sharing.shareAsync(localUri)
      .then(() => console.log('SUCCESS'))
      .catch((error) => setErrore("ERROR"))
    } catch (error) {


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