Skip to content

Commit

Permalink
use twitter intent api to fix issue on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
nygardk committed Nov 19, 2023
1 parent c4cc495 commit 6a43137
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-wolves-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": patch
---

Fixed WhatsApp sharring issue on Android described [here](https://github.com/nygardk/react-share/issues/484).
2 changes: 1 addition & 1 deletion src/TwitterShareButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function twitterLink(
assert(Array.isArray(related), 'twitter.related is not an array');

return (
'https://twitter.com/share' +
'https://twitter.com/intent/tweet' +
objectToGetParams({
url,
text: title,
Expand Down

0 comments on commit 6a43137

Please sign in to comment.