react-share

Social media share buttons and share counts for React

MIT License

Downloads
1.7M
Stars
2.6K
Committers
67

Bot releases are visible (Hide)

react-share - v5.1.0 Latest Release

Published by github-actions[bot] 8 months ago

Minor Changes

  • 4e74597: Added htmlTitle prop for the share button. This prop will be passed as the native title attribute for the button element.
react-share - v5.0.4

Published by github-actions[bot] 8 months ago

Patch Changes

  • 1c50111: Fixed exports in package.json to comply with the publint and attw tools. May solve issues when your project uses CommonJS modules and Node.js v16 or newer.
react-share - v5.0.3

Published by github-actions[bot] 11 months ago

Patch Changes

  • ddcf9c8: Fixed invalid exports configuration (reference to dist/index.cjs).
react-share - v5.0.2

Published by github-actions[bot] 11 months ago

Patch Changes

  • b1da2d9: Fix Reddit logo in RedditIcon.
  • 2588f97: Fixed colors for: FacebookIcon, LinkedinIcon, OKIcon, PinterestIcon, RedditIcon, TelegramIcon, TumblrIcon, VKIcon, ViberIcon, WeiboIcon, WorkplaceIcon.
  • 6a43137: Fixed WhatsApp sharring issue on Android described here.
react-share - v5.0.1

Published by github-actions[bot] 11 months ago

Patch Changes

  • 8dd0134: @changesets/cli was accidentally added in dependencies. It is now moved to devDependencies.
react-share - v5.0.0

Published by github-actions[bot] 11 months ago

Major Changes

  • c04c694: Removed the quote prop from FacebookShareButton as it has been deprecated by Meta. See https://developers.facebook.com/support/bugs/734680371318112/?comment_id=743056360480513.
  • 043faa3: Removed default aria-label prop from ShareButtons. Before it defaulted to the name of the "network name" (e.g. "facebook" for Facebook). Issue explained here.
  • d4c192a: Compilation target is now ES2017 instead of ES5. The distributed files are built with Vite instead of TypeScript compiler.
  • 471510a: Dropped support for React 16.

Minor Changes

  • 2c0ab57: Added GabShareButton and GabIcon to share on gab.com. Originally implemented here.
  • 18f2de2: Added XIcon.
  • 77ecaa7: Share counts are now created as function components instead of class components.
  • 15fd50d: Added pinId prop for PinterestShareButton.
  • 44c672f: Share buttons are now created as function components instead of class components.

Patch Changes

  • 65b53c5: Fix HatenaShareCount to show also 0. Originally fixed here.
  • 14bbffa: Fixed createIcon defaultProps warning with React 18.
react-share - v4.4.1

Published by nygardk about 2 years ago

  • Chore: upgraded build deps
  • Fix: Support React 18 in peerDependencies
react-share - v4.4.0

Published by nygardk over 3 years ago

  • Fix: Support React 17 in peerDependencies (#379)
  • Fix: Updated Telegram link for shares custom URLs (#377)
  • Fix: Updated Reddit logo background colour (#366)
react-share - v4.3.0

Published by nygardk about 4 years ago

  • Added: HatenaShareButton and HatenaShareCount
react-share - v4.2.1

Published by nygardk over 4 years ago

  • Fix: added internal assert utility to get rid of Node.js assert dependency (MINOR BREAKING CHANGE: the error thrown is slightly different)
react-share - v4.2.0

Published by nygardk over 4 years ago

  • Added: FacebookMessengerShareButton docs are now included in the readme
  • Fix: Prevent VKShareCount from colliding with an existing window.VK object
  • Fix: Default separator in ViberShareButton is now ' '
  • Fix: WhatsappIcon green color to match with WhatsApp brand
  • Fix: Allow ShareButton beforeOnClick to return void
  • Fix: Guard against unexpected behaviour with OKShareCount for the returned index parameter by adding a sensible fallback
react-share - v4.1.0

Published by nygardk over 4 years ago

  • Fix: TwitterShareButton won't have hashtags as empty string (#284, #293)
  • Fix: OKShareCount now supports multiple different share counts per page (#289)
  • Fix: share buttons won't pass link options as props (#286)
  • Fix: EmailShareButton now has default separator correctly as ' ' (#287)
  • Fix: WhatsappShareButton now has default separator correctly as ' '
  • Fix: TumblrShareButton now has default posttype correctly as link
  • Feature: TwitterShareButton now supports "related" array (#281)
react-share - v4.0.0

Published by nygardk almost 5 years ago

🎉 Big 2020 release 🎉

  • React 16.3.0 or newer is now required
  • Refactored to TypeScript, type definitions are now included
  • Added: FacebookMessengerShareButton and FacebookMessengerShareCount
  • Added: WeiboIcon
  • Fixed: VKShareButton
  • Fixed: LinkedinShareButton
  • Fixed: MailruShareButton
  • Fixed: TumblrShareCount
  • Fixed: FacebookShareCount
  • Breaking changes:
    • default classNames have been changed
    • all { ...rest } props are spread to the root element for share buttons and share counts
    • share counts are now rendered in span element instead of div
    • icons have svg as root element instead of div
    • icon props were renamed: iconBgStyle -> bgStyle, logoFillColor -> iconFillColor
react-share - v3.0.1

Published by nygardk about 5 years ago

  • Forward ref on to the share buttons
  • use componentDidUpdate instead of componentWillUpdate
react-share - v3.0.0

Published by nygardk over 5 years ago

  • Added <PocketShareButton>
  • Added <InstapaperShareButton>
  • Added borderRadius prop for icons
  • A default aria-label is generated for the share buttons. It is based on the network name. Use additionalProps to override.
  • Removed support for Google+.
  • Removed support for <LinkedInShareCount/>. LinkedIn no longer provides an API to fetch share counts.
  • Removed title and description from <LinkedInShareButtons/>.
  • Fix: <EmailShareButton/> includes body before url.
  • Fix: <EmailShareButton/> and <ViberShareButton/> allow customization of separator.
  • Fix: <WeiboShareButton/> no longer requires image prop
  • Fix: <WeiboShareButton/> includes url correctly when shared
  • Fix: <WeiboShareButton/> and <OKShareButton/> open in screen center to prevent window from jumping after opening
  • Thanks @finppp, @madkoding, @andrewl913, @jwrubel, @sinchang and @sergioribeiro!
react-share - v2.4.0

Published by nygardk over 5 years ago

  • Added <LineShareButton /> and <WeiboShareButton />
react-share - 3.0.0-beta.0

Published by nygardk over 5 years ago

react-share - v2.3.1

Published by nygardk about 6 years ago

  • tabIndex prop can now also be a number
react-share - v2.3.0

Published by nygardk about 6 years ago

  • Added <WorkplaceShareButton /> (Facebook Workplace)
react-share - v2.2.0

Published by nygardk over 6 years ago

  • Added <ViberShareButton />
  • Support name prop in share buttons
  • Fix minor accessibility issue (#156)