Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Share dialog not resolving promise when dismissed on iOS (#26842)
Summary: On iOS the promised returned by `Share.share(content, options)` isn't resolved if the user dismisses the dialog by either pressing "Cancel" or pressing outside the shared dialog. This PR fixes this issue. This fixes #26809. ## Changelog [iOS] [Fixed] - Fix promised returned by `Share.share(content, options)` not resolving if share dialog dismissed Pull Request resolved: #26842 Test Plan: 1. on iOS, open a share dialog with: ```typescript const onShare = async () => { const result = await Share.share({ message: 'example message' }); } ``` 2. Dismiss the opened share dialog and the returned promised should resolve. Differential Revision: D18189755 Pulled By: cpojer fbshipit-source-id: 1269932e9549026afefdaa8478ff7d33bbaeb86f
- Loading branch information