Skip to content

Commit

Permalink
iOS 13: Resolve promise if ShareSheet is manually dismissed (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtargosz authored and jgcmarins committed Oct 16, 2019
1 parent 96a2b2c commit 736a8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNShare.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ - (NSDictionary *)constantsToExport
shareController.completionWithItemsHandler = ^(NSString *activityType, BOOL completed, __unused NSArray *returnedItems, NSError *activityError) {
if (activityError) {
failureCallback(activityError);
} else if (completed) {
} else if (completed || activityType == nil) {
successCallback(@[@(completed), RCTNullIfNil(activityType)]);
}
};
Expand Down

0 comments on commit 736a8ac

Please sign in to comment.