Skip to content

export the functions creating the share urls #101

@tttp

Description

@tttp

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.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions