react-native-share 12.2.0 → 12.2.2

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.
package/README.md CHANGED
@@ -102,7 +102,7 @@ Share.open(options)
102
102
  console.log(res);
103
103
  })
104
104
  .catch((err) => {
105
- err && console.log(err);
105
+ console.log(err);
106
106
  });
107
107
  ```
108
108
 
@@ -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,13 +1,13 @@
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.2",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/react-native-community/react-native-share.git"
7
+ "url": "git+https://github.com/react-native-share/react-native-share.git"
8
8
  },
9
9
  "bugs": {
10
- "url": "https://github.com/react-native-community/react-native-share/issues"
10
+ "url": "https://github.com/react-native-share/react-native-share/issues"
11
11
  },
12
12
  "main": "lib/commonjs/index.js",
13
13
  "react-native": "src/index.tsx",
@@ -35,11 +35,11 @@
35
35
  "@expo/config-plugins": "^9.0.10",
36
36
  "@react-native/eslint-config": "^0.74.0",
37
37
  "@react-native/metro-config": "^0.73.2",
38
- "@semantic-release/commit-analyzer": "^11.1.0",
38
+ "@semantic-release/commit-analyzer": "^13.0.0",
39
39
  "@semantic-release/git": "^10.0.1",
40
- "@semantic-release/github": "^9.2.1",
41
- "@semantic-release/npm": "^11.0.1",
42
- "@semantic-release/release-notes-generator": "^12.1.0",
40
+ "@semantic-release/github": "^11.0.0",
41
+ "@semantic-release/npm": "^13.0.0",
42
+ "@semantic-release/release-notes-generator": "^14.0.0",
43
43
  "@tsconfig/node-lts": "^22.0.0",
44
44
  "@tsconfig/react-native": "^3.0.2",
45
45
  "@types/react": "^18.2.37",
@@ -61,7 +61,7 @@
61
61
  "react-native-builder-bob": "^0.23.1",
62
62
  "react-native-windows": "^0.72.19",
63
63
  "react-test-renderer": "^18.2.0",
64
- "semantic-release": "^22.0.7",
64
+ "semantic-release": "^24.0.0",
65
65
  "typescript": "^5.2.2",
66
66
  "patch-package": "^8.0.0",
67
67
  "postinstall-postinstall": "^2.1.0"
@@ -119,7 +119,13 @@
119
119
  "plugins": [
120
120
  "@semantic-release/commit-analyzer",
121
121
  "@semantic-release/release-notes-generator",
122
- "@semantic-release/npm",
122
+ [
123
+ "@semantic-release/npm",
124
+ {
125
+ "npmPublish": true,
126
+ "pkgRoot": "."
127
+ }
128
+ ],
123
129
  [
124
130
  "@semantic-release/github",
125
131
  {