Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

export the functions creating the share urls #101

Open
tttp opened this issue Aug 7, 2023 · 1 comment
Open

export the functions creating the share urls #101

tttp opened this issue Aug 7, 2023 · 1 comment

Comments

@tttp
Copy link

tttp commented Aug 7, 2023

Could it be possible to export a shareLink(socialmedia, options) function that build the url required by each social media?

eg

shareLink ("twitter", {url: https://github.com/next-share, text: "next-share is a social share..."}) or
twitterLink ({url...})

would return

https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.heygears.com%2Fnext-share&text=next-share is a social share buttons for your next React apps.

the functions building the urls for the various social media (eg twitterLink) are already there, the issue is that they aren't exposed/exported by your library

@lluz
Copy link

lluz commented Aug 19, 2024

That would be very useful

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants