react-native-macos/React
Victor Fernandez 7468a6c903 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 https://github.com/facebook/react-native/issues/26809.

## Changelog

[iOS] [Fixed] - Fix promised returned by `Share.share(content, options)` not resolving if share dialog dismissed
Pull Request resolved: https://github.com/facebook/react-native/pull/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
2019-10-28 16:24:16 -07:00
..
Base Introducing `RCTBridgeWillBeInvalidatedNotification` 2019-10-24 17:45:40 -07:00
CoreModules Fix Share dialog not resolving promise when dismissed on iOS (#26842) 2019-10-28 16:24:16 -07:00
CxxBridge Replace folly::make_unique with std::make_unique (#26730) 2019-10-22 12:21:41 -07:00
CxxModule Replace folly::make_unique with std::make_unique (#26730) 2019-10-22 12:21:41 -07:00
CxxUtils Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
DevSupport Don't attempt to connect to React devtools every 2s 2019-10-23 10:30:43 -07:00
Fabric Fix unrecognised selector crash on iOS 9 2019-10-28 00:07:19 -07:00
Inspector Tidy up license headers [3/n] 2019-10-16 10:06:34 -07:00
Modules Render collapsed frames in RedBox 2019-10-22 11:05:36 -07:00
Profiler Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
UIUtils Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
Views Remove max depth parameter while measuring layout of shadow view (#26986) 2019-10-28 13:17:09 -07:00
React-RCTFabric.podspec Move non-license comments out of license header 2019-10-15 20:12:12 -07:00
third-party.xcconfig Upgrade folly to v2018.10.22.00 for iOS (#21976) 2018-10-29 12:13:11 -07:00