react-native-share 11.0.3 → 11.0.4
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/ios/FacebookStories.m +1 -1
- package/ios/GooglePlusShare.m +1 -1
- package/ios/InstagramShare.m +2 -2
- package/ios/InstagramStories.m +1 -1
- package/ios/WhatsAppShare.m +2 -2
- package/package.json +1 -1
package/ios/FacebookStories.m
CHANGED
|
@@ -87,7 +87,7 @@ RCT_EXPORT_MODULE();
|
|
|
87
87
|
// Cannot open facebook
|
|
88
88
|
NSString *stringURL = @"https://itunes.apple.com/app/facebook/id284882215";
|
|
89
89
|
NSURL *url = [NSURL URLWithString:stringURL];
|
|
90
|
-
[[UIApplication sharedApplication] openURL:url];
|
|
90
|
+
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
|
|
91
91
|
|
|
92
92
|
NSString *errorMessage = @"Not installed";
|
|
93
93
|
NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedString(errorMessage, nil)};
|
package/ios/GooglePlusShare.m
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
NSURL *gplusURL = [NSURL URLWithString:[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
|
22
22
|
|
|
23
23
|
if ([[UIApplication sharedApplication] canOpenURL: gplusURL]) {
|
|
24
|
-
[[UIApplication sharedApplication] openURL:gplusURL];
|
|
24
|
+
[[UIApplication sharedApplication] openURL:gplusURL options:@{} completionHandler:nil];
|
|
25
25
|
resolve(@[@true, @""]);
|
|
26
26
|
} else {
|
|
27
27
|
// Cannot open gplus
|
package/ios/InstagramShare.m
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
if ([[UIApplication sharedApplication] canOpenURL: shareURL]) {
|
|
47
|
-
[[UIApplication sharedApplication] openURL:
|
|
47
|
+
[[UIApplication sharedApplication] openURL:shareURL options:@{} completionHandler:nil];
|
|
48
48
|
resolve(@[@true, @""]);
|
|
49
49
|
} else {
|
|
50
50
|
// Cannot open instagram
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
resolve: resolve];
|
|
85
85
|
}
|
|
86
86
|
} else {
|
|
87
|
-
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"instagram://camera"]];
|
|
87
|
+
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"instagram://camera"] options:@{} completionHandler:nil];
|
|
88
88
|
resolve(@[@true, @""]);
|
|
89
89
|
}
|
|
90
90
|
}
|
package/ios/InstagramStories.m
CHANGED
|
@@ -84,7 +84,7 @@ RCT_EXPORT_MODULE();
|
|
|
84
84
|
// Cannot open instagram
|
|
85
85
|
NSString *stringURL = @"https://itunes.apple.com/app/instagram/id389801252";
|
|
86
86
|
NSURL *url = [NSURL URLWithString:stringURL];
|
|
87
|
-
[[UIApplication sharedApplication] openURL:url];
|
|
87
|
+
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
|
|
88
88
|
|
|
89
89
|
NSString *errorMessage = @"Not installed";
|
|
90
90
|
NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey: NSLocalizedString(errorMessage, nil)};
|
package/ios/WhatsAppShare.m
CHANGED
|
@@ -107,7 +107,7 @@ resolve:(RCTPromiseResolveBlock)resolve {
|
|
|
107
107
|
NSURL * whatsappURL = [NSURL URLWithString:urlWhats];
|
|
108
108
|
|
|
109
109
|
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
|
|
110
|
-
[[UIApplication sharedApplication] openURL:
|
|
110
|
+
[[UIApplication sharedApplication] openURL:whatsappURL options:@{} completionHandler:nil];
|
|
111
111
|
resolve(@[@true, @""]);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -144,7 +144,7 @@ resolve:(RCTPromiseResolveBlock)resolve {
|
|
|
144
144
|
// Cannot open whatsapp
|
|
145
145
|
NSString *appStoreStringURL = @"https://itunes.apple.com/app/whatsapp-messenger/id310633997";
|
|
146
146
|
NSURL *appStoreURL = [NSURL URLWithString:appStoreStringURL];
|
|
147
|
-
[[UIApplication sharedApplication] openURL:appStoreURL];
|
|
147
|
+
[[UIApplication sharedApplication] openURL:appStoreURL options:@{} completionHandler:nil];
|
|
148
148
|
return false;
|
|
149
149
|
}
|
|
150
150
|
}
|
package/package.json
CHANGED