Skip to content

Commit

Permalink
Remove twitter native support on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
oamado committed Oct 28, 2021
1 parent b60af49 commit a4a65ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ios/GenericShare.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ - (void)shareSingle:(NSDictionary *)options
inAppBaseUrl:(NSString *)inAppBaseUrl {

NSLog(@"Try open view");
if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:inAppBaseUrl]]) {

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

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

0 comments on commit a4a65ec

Please sign in to comment.