Skip to content

Commit

Permalink
fix: resolve callback on ios every time on completion (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofcelba committed Feb 23, 2021
1 parent 5d94204 commit 8be5897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNShare.m
Expand Up @@ -266,7 +266,7 @@ - (NSDictionary *)constantsToExport
if (activityError) {
[controller dismissViewControllerAnimated:true completion:nil];
failureCallback(activityError);
} else if (completed || activityType == nil) {
} else {
successCallback(@[@(completed), RCTNullIfNil(activityType)]);
}
};
Expand Down

0 comments on commit 8be5897

Please sign in to comment.