Giter VIP home page Giter VIP logo

react-social-sharing's People

Contributors

bensigo avatar bmihelac avatar breadadams avatar doingandlearning avatar elmasse avatar iamhitarth avatar itwillwork avatar kikobeats avatar ninjasawan avatar saravieira avatar shlomizadok avatar treyoverton avatar williamboman avatar yetihead avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-social-sharing's Issues

Pinterest

I really love this plugin. Thanks for providing it. Pinterest requires two parts to their url. They have a media link and they have a url link. It appears we can only pass the link and it gets put in both. Is there any way to have it so that it will not pull both and instead have two parameters one for media and one for the url to redirect to? Or am I missing something?

react-social-sharing is searching for Maintainers!

This issue was created by Maintainers Wanted ๐Ÿค“

Support us by leaving a star on Github! ๐ŸŒŸ

react-social-sharing is searching for new Maintainers! ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ“ฌ

Do you use react-social-sharing personally or at work and would like this project to be further developed and improved?

Or are you already a contributor and ready to take the next step to becoming a maintainer?

If you are interested, comment here below on this issue ๐Ÿ‘‡ or drop me a message on Twitter! ๐Ÿ™Œ

Improving dependencies

Hey Sara! ๐Ÿ‘‹

  1. I see this package has jest as a (non-dev) dependency. Is this expected?
  2. Could we add react as a peer dependency?

Issues installing with v1.4.0

I get this error when I use the latest version 1.4.0

below is my error

error /Users/farisroslan/Desktop/projects/postco-apps/postco/client/node_modules/react-social-sharing: Command failed.
Exit code: 1
Command: npm run dist:modules
Arguments:
Directory: /Users/farisroslan/Desktop/projects/postco-apps/postco/client/node_modules/react-social-sharing
Output:
> [email protected] dist:modules /Users/farisroslan/Desktop/projects/postco-apps/postco/client/node_modules/react-social-sharing
> del-cli ./dist-modules && cross-env BABEL_ENV=modules babel ./src --out-dir ./dist-modules

sh: del-cli: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] dist:modules: `del-cli ./dist-modules && cross-env BABEL_ENV=modules babel ./src --out-dir ./dist-modules`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] dist:modules script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/farisroslan/.npm/_logs/2018-08-14T06_16_36_346Z-debug.log

v1.3.3 and 1.3.2 work fine

Thanks for the library!

cross-env: not found

Hello here ๐Ÿ‘‹

I was trying to add this module using yarn and npm but got the same error

โœ— yarn add react-social-sharing
yarn add v1.7.0
info No lockfile found.
[1/4] Resolving packages...
warning @zeit/next-css > css-loader > cssnano > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @zeit/next-css > css-loader > cssnano > postcss-merge-rules > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @zeit/next-css > css-loader > cssnano > postcss-merge-rules > caniuse-api > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@zeit/next-css > [email protected]" has unmet peer dependency "webpack@^3.1.0".
warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
warning " > [email protected]" has unmet peer dependency "popper.js@^1.14.3".
[4/4] Building fresh packages...
[1/3] โก€ uglifyjs-webpack-plugin
[3/3] โก€ react-social-sharing
error /folder/ui/node_modules/react-social-sharing: Command failed.
Exit code: 1
Command: npm run dist:modules
Arguments: 
Directory: /folder/ui/node_modules/react-social-sharing
Output:
> [email protected] dist:modules /folder/ui/node_modules/react-social-sharing
> cross-env BABEL_ENV=modules babel ./src --out-dir ./dist-modules

sh: 1: cross-env: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] dist:modules: `cross-env BABEL_ENV=modules babel ./src --out-dir ./dist-modules`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] dist:modules script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:

Apparently issue can be solved installing cross-env

Support configuring mail body

Right now the body of mail share buttons is hard-coded to just contain the link. I'd like to be able to set a custom body, e.g. via a new body prop.

One concern to be considered if this were to be added: the name of the existing message prop, which would still control the subject, would become quite ambiguous. Does it control the subject or the body? I see two solutions:

  1. keep the existing prop name and a new body prop
  2. rename the existing message prop to subject, and add a new body prop (breaking change)

Fix issues with CSS [mozilla]

Before JS the these buttons appear unstyled. only Production mode on Mozilla

Screen Shot 2022-07-01 at 00 30 46

Screen Shot 2022-07-01 at 00 31 52

Screen.Recording.2022-07-01.at.00.36.47.mov

Share CallBAck

Hi, is there any callback function that can be executed when a sharing is done? may be just a console.log indicating 'Okay the sharing is successfull'?

ID param supported? - Question

Great build, and the docs are ON POINT. Just wondering if each social icon supports a unique ID? (ie. #shared-on-twitter). Mainly asking for analytic reason.

Thanks!

do i need to import css file?

I am able to add share icon to my react project
But when I mouseover the icon, I see <a> tag behavior...
like the button text got blue color and underline...

<Twitter solid big message="xxx" link="xxx" />

How do I fix it? btw I am using nextjs

Thanks.

X

Hi! Any chance you could update the blue Twitter button to be a black X button?

Remove periods (.) from share messages

There's a . appended to all messages, so even when there isn't a message the period gets used.

This becomes an issue for example with linkedin, where by default with "no message" you'll see the following:

image

Instead of what could be:

image

WhatsApp sharing link has a space after the 'send?text=' portion of the link

In the file consts.js:

whatsapp: function whatsapp() {
    var link = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
    var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
    return 'whatsapp://send?text=' + encodeURIComponent(message) + '%20' + encodeURIComponent(link);
  },

For some reason, a space is added after the send?text= portion in the button's sharing link, before the URL. I don't use a Message attribute for the component, so I think that's the reason. This case should be better taken care of.

Also, this link doesn't work for desktop (WhatsApp web). You should consider changing the API link to using https://api.whatsapp.com/send? instead of whatsapp://.

just wondering

is there a way to share images in other share buttons besides the pinterest media field?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.