New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove twitter native support on iOS #1120
Conversation
What do you think about adding some notes about this? Maybe here: https://react-native-share.github.io/react-native-share/docs/troubleshooting-ios. We could point out to twitter docs regarding this. |
@MateusAndrade I just updated the documentation. Let me know if you see something that can be improved |
@@ -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]]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about assign this to a variable? Maybe an: shouldOpenUrl
? Or something like this:
isSharingToTwitter:(BOOL*)sharingToTwitter = [serviceType isEqualToString:@"com.apple.social.twitter"];
if(!sharingToTwitter && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:inAppBaseUrl]]) {
Sorry if its wrong, I don't know a lot about objective-c 😓
## [7.3.2](v7.3.1...v7.3.2) (2021-11-29) ### Bug Fixes * **twitter:** remove twitter native support on iOS ([#1120](#1120)) ([3bccd59](3bccd59))
🎉 This PR is included in version 7.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [7.3.2](react-native-share/react-native-share@v7.3.1...v7.3.2) (2021-11-29) ### Bug Fixes * **twitter:** remove twitter native support on iOS ([#1120](react-native-share/react-native-share#1120)) ([3bccd59](react-native-share/react-native-share@3bccd59))
Overview
As Twitter removed the support for the development kit, there is an issue in the visualization of a post. Related to #930
Test Plan
Share a tweet using the library, this will open the browser, and if the phone has the app, then the Twitter app will be launched correctly.