react-native-share 12.2.0 → 12.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,14 +27,14 @@
27
27
  NSURL * shareURL = [NSURL URLWithString:urlTelegram];
28
28
 
29
29
  if ([[UIApplication sharedApplication] canOpenURL: shareURL]) {
30
- [[UIApplication sharedApplication] openURL: shareURL];
30
+ [[UIApplication sharedApplication] openURL: shareURL options:@{} completionHandler:nil];
31
31
  resolve(@[@true, @""]);
32
32
  } else {
33
33
  // Cannot open telegram
34
34
  NSString *stringURL = @"https://itunes.apple.com/app/telegram-messenger/id686449807";
35
35
  NSURL *url = [NSURL URLWithString:stringURL];
36
36
 
37
- [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {}];
37
+ [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
38
38
 
39
39
  NSString *errorMessage = @"Not installed";
40
40
  NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedString(errorMessage, nil)};
package/ios/ViberShare.m CHANGED
@@ -25,14 +25,14 @@
25
25
  NSURL * shareURL = [NSURL URLWithString:urlViber];
26
26
 
27
27
  if ([[UIApplication sharedApplication] canOpenURL: shareURL]) {
28
- [[UIApplication sharedApplication] openURL: shareURL];
28
+ [[UIApplication sharedApplication] openURL: shareURL options:@{} completionHandler:nil];
29
29
  resolve(@[@true, @""]);
30
30
  } else {
31
31
  // Cannot open viber
32
32
  NSString *stringURL = @"https://apps.apple.com/app/viber-messenger-chats-calls/id382617920";
33
33
  NSURL *url = [NSURL URLWithString:stringURL];
34
34
 
35
- [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {}];
35
+ [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
36
36
 
37
37
  NSString *errorMessage = @"Not installed";
38
38
  NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedString(errorMessage, nil)};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-share",
3
3
  "description": "Social share, sending simple data to other apps.",
4
- "version": "12.2.0",
4
+ "version": "12.2.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/react-native-community/react-native-share.git"