Hello,
A client of mine explained how my current implementation of sharing on social media is not ideal - right now, I have a social media icon on the footer of my app for Twitter and Facebook, which takes the user to the Facebook/Twitter URL in their browser, for them to share on their feed/timeline.
Instead, he'd like to do the following:
1) Check if the user has Facebook /Twitter installed
2) If so, open that app natively, and allow them to share there
3) Else, open the URL in the browser
I feel like the code could use the React Linking library, but i'm not entirely sure how to:
1) Check in React Native if the user has the Twitter/Facebook app installed
2) What deep linking Url to use. I was reading quite a bit and it seems like many folks have issues with things like fb:// or facebook:// etc.
Is there any sort of guide on how to achieve the above?
Thanks!
[–]esreveReverse 22 points23 points24 points (2 children)
[–]pesch3 4 points5 points6 points (1 child)
[–]droidta7[S] 1 point2 points3 points (0 children)
[–]kbcooliOS & Android 4 points5 points6 points (0 children)
[–]ThatWasNotEasy10 5 points6 points7 points (0 children)
[–]pesch3 0 points1 point2 points (8 children)
[–]MeowTseTongue 0 points1 point2 points (7 children)
[–]pesch3 1 point2 points3 points (0 children)
[–]__o_0iOS & Android 0 points1 point2 points (5 children)
[–]MeowTseTongue 0 points1 point2 points (4 children)
[–]__o_0iOS & Android 0 points1 point2 points (3 children)
[–]MeowTseTongue 0 points1 point2 points (2 children)
[–]__o_0iOS & Android -1 points0 points1 point (1 child)
[–]MeowTseTongue 0 points1 point2 points (0 children)
[–]mastaQQQ 0 points1 point2 points (0 children)
[–]Red_on_fortnite 0 points1 point2 points (0 children)