Skip to content

Commit

Permalink
fix: share dialog with modal (#988)
Browse files Browse the repository at this point in the history
Co-authored-by: Shruthi R Salian <shruthi.salian@publicissapient.com>
  • Loading branch information
ShruthiRSalian and ShruthiRS-91 committed Mar 26, 2021
1 parent 7ce9b1d commit bf300d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ios/RNShare.m
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ - (NSDictionary *)constantsToExport

// always dismiss since this may be called from cancelled shares
// but the share menu would remain open, and our callback would fire again on close
[controller dismissViewControllerAnimated:true completion:nil];
if(weakShareController){
// closing activity view controller
[weakShareController dismissViewControllerAnimated:true completion:nil];
} else {
[controller dismissViewControllerAnimated:true completion:nil];
}


if (activityError) {
failureCallback(activityError);
Expand Down

0 comments on commit bf300d0

Please sign in to comment.