nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 433 forks source link

WhatsApp Desktop is not being opened #433

Open wissog opened 2 years ago

wissog commented 2 years ago

Can you add the ability to whatapp button to open the desktop app rather than whatapp web, like you've done with Telegram button?

you need to add something like this: https://wa.me/?text=usersharedurlencodedtext

mledwards commented 1 year ago

I ended up building my own, but using the react-share icon

<a
  href={`whatsapp://send?text=${encodeURI(
    message
  )}`}
>
  <WhatsappIcon size={38} />
</a>