Skip to content

Commit

Permalink
fix(twitter): shareSingle with image on iOS (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
geroale committed Dec 8, 2022
1 parent 11af352 commit bdf7d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/GenericShare.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ - (void)shareSingle:(NSDictionary *)options
inAppBaseUrl:(NSString *)inAppBaseUrl {

NSLog(@"Try open view");
if(![serviceType isEqualToString:@"com.apple.social.twitter"] && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:inAppBaseUrl]]) {
if([serviceType isEqualToString:@"com.apple.social.twitter"]) {
SLComposeViewController *composeController = [SLComposeViewController composeViewControllerForServiceType:serviceType];

NSURL *URL = [RCTConvert NSURL:options[@"url"]];
Expand Down

0 comments on commit bdf7d09

Please sign in to comment.