Skip to content

Promise returned by share dialog won't resolve if cancelled on iOS #26809

@v-fernandez

Description

@v-fernandez

On iOS, the share text dialog won't resolve the returned promise when the dialog is dismissed by pressing the Cancel button or by pressing outside the dialog. Other share options resolve the promise as expected.

shareLink = async () => {
  await Share.share({ message: 'message-to-share' }) // Hangs if the dialog is dismissed by the Cancel button or by pressing outside the dialog
}

React Native version: 0.61.2

Steps To Reproduce

  1. Open share dialog with Share.share(content, options)
  2. Dismiss the dialog by pressing Cancel or pressing outside the dialog.

Describe what you expected to happen: The promise returned by Share.share(content, options) should be resolved when the dialog is dismissed.

Snack, code example, screenshot, or link to a repository:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions