We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce9b1d commit bf300d0Copy full SHA for bf300d0
ios/RNShare.m
@@ -267,7 +267,13 @@ - (NSDictionary *)constantsToExport
267
268
// always dismiss since this may be called from cancelled shares
269
// but the share menu would remain open, and our callback would fire again on close
270
- [controller dismissViewControllerAnimated:true completion:nil];
+ if(weakShareController){
271
+ // closing activity view controller
272
+ [weakShareController dismissViewControllerAnimated:true completion:nil];
273
+ } else {
274
+ [controller dismissViewControllerAnimated:true completion:nil];
275
+ }
276
+
277
278
if (activityError) {
279
failureCallback(activityError);
0 commit comments