- Added:
HatenaShareButtonandHatenaShareCount
- Fix: added internal
assertutility to get rid of Node.jsassertdependency (MINOR BREAKING CHANGE: the error thrown is slightly different)
- Added:
FacebookMessengerShareButtondocs are now included in the readme - Fix: Prevent
VKShareCountfrom colliding with an existingwindow.VKobject - Fix: Default separator in
ViberShareButtonis now' ' - Fix:
WhatsappIcongreen color to match with WhatsApp brand - Fix: Allow
ShareButtonbeforeOnClickto returnvoid - Fix: Guard against unexpected behaviour with
OKShareCountfor the returned index parameter by adding a sensible fallback
- Fix:
TwitterShareButtonwon't have hashtags as empty string (#284, #293) - Fix:
OKShareCountnow supports multiple different share counts per page (#289) - Fix: share buttons won't pass link options as props (#286)
- Fix:
EmailShareButtonnow has defaultseparatorcorrectly as `` #287) - Fix:
WhatsappShareButtonnow has defaultseparatorcorrectly as `` - Fix:
TumblrShareButtonnow has defaultposttypecorrectly aslink - Feature:
TwitterShareButtonnow supports "related" array (#281)
- React 16.3.0 or newer is now required
- Refactored to TypeScript, type definitions are now included
- Added:
FacebookMessengerShareButtonandFacebookMessengerShareCount - 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
spanelement instead ofdiv - icons have
svgas root element instead ofdiv - icon props were renamed:
iconBgStyle->bgStyle,logoFillColor->iconFillColor
- default
- Forward
refon to the share buttons - use
componentDidUpdateinstead ofcomponentWillUpdate
- Added
<PocketShareButton> - Added
<InstapaperShareButton> - Added
borderRadiusprop for icons - A default
aria-labelis generated for the share buttons. It is based on the network name. UseadditionalPropsto override. - Removed support for Google+.
- Removed support for
<LinkedInShareCount/>. LinkedIn no longer provides an API to fetch share counts. - Removed
titleanddescriptionfrom<LinkedInShareButtons/>. - Fix:
<EmailShareButton/>includesbodybeforeurl. - Fix:
<EmailShareButton/>and<ViberShareButton/>allow customization ofseparator. - Fix:
<WeiboShareButton/>no longer requiresimageprop - 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!
- Added
<LineShareButton />and<WeiboShareButton />
tabIndexprop can now also be a number
- Added
<WorkplaceShareButton />(Facebook Workplace)
- Added
<ViberShareButton /> - Support
nameprop in share buttons - Fix minor accessibility issue (#156)
- Added support for
webpack 4tree shaking withsideEffects: false-flag inpackage.json
- Fix: use
httpsfor TumblrShareCount - Fix: use
urlas the default email body (instead ofsubject) - Fix: invoke
beforeOnClickalso for EmailShareButton
- Major project refactoring (thanks @aautio!)
- CommonJS modules are buit to
./lib, es-modules are built to./es - Share buttons, share counts and icons are now separately importable and support tree-shaking
- Demo is now found at http://nygardk.github.io/react-share/
- Minor fix to how
logoFillColoris passed to the icon path
- Removed
platformdependency and replace <=IE10 check with a utility function (thanks @aautio!)
- Whatsapp share button: fixed displaying "undefined" when title was not provided (fixes #84, thanks @aautio!)
- Added LiveJournal and Mail.Ru sharebuttons (thanks @pvpshoot!)
- Added
<TumblrShareButton />and<TumblrShareCount />(thanks @ArtBIT!) - Added
additionalPropsto share buttons to make it possible to pass any additional props (likearia-attributes) - It is now possible to override
role(default='button') andtabIndex(default='0') props
- Allow React
v16.x.xas peer dependency. - Added
<EmailShareButton />. - Added
onShareWindowCloseshare button prop (#91).
- Deprecated
title,descriptionandpictureprops for FacebookShareButton (because of Facebook API change). New prop:quote.
- Use new WhatsApp API (thanks @renchap!).
- A11y update: handle Enter-keypress when share button is on focus.
- Minor accessibility update.
- Added Reddit share button and count (thanks @watbe!).
beforeOnClickno longer has to return Promise
- More permissive dependency versions.
- Minor icon component fix: use
prop-typeslib instead ofReact.propTypesand useReact.Componentinstead ofReact.createClass. Suppresses warnings caused by upgrading to React v.>=15.5.0(thanks @yurick-flama).
- Added share button and count for Odnoklassniki.ru (thanks @R0nd!).
- Replaced
https://facebook.com/sharer.phpwithhttps://www.facebook.com/sharer/sharer.php
- Added VKShareCount
- Added Whatsapp and Telegram share buttons
- Added
imageprop to VK share link - Added missing
pictureprop to README.md for FacebookShareButton
- Added
beforeOnClickoption for share buttons - Added
hashtagoption for Facebook share button
- Added
titleanddescriptionto VK and Linkedin share links (@VorontsovMaxim) - Fixed Firefox bug with loading SVGs with CSP enabled (@OttoRobotto)
- New end point for fetching Facebook share count.
- Added
windowWidthandwindowHeightprops to share buttons to control opened window dimensions
- Added
titleanddescriptionprops for FacebookShareButton.titlewas not working correctly previously.
- Fixed propType warnings that were caused by updating to React v. 15.2.0
- Share count will now be updated if url prop is changed
- Error callback with Facebook share counts is now correctly called
- added disabled and disabledStyle props to share buttons
- added iconBgStyle and logoFillColor to icon styles
- Inline style
display: 'inline-block'is no longer added to icons. If you are upgrading from an older version, be sure to add the style yourself if needed.
- feature: added sharing support for VK
- internal changes for preparing version 2, assertion message changes
- minor breaking change: Google Plus button now has class
SocialMediaShareButton--googlePlusinstead ofSocialMediaShareButton--google-plus
- Updated to support React v. 15.x.x
- Bugfix: className-prop was not propagating correctly in share-buttons.
- Removed Bluebird from dependencies: no need for Promises. The library has a much smaller footprint now.
- TwitterShareCount removed: Since 20th of November Twitter no longer supports open count API. The service was shut down and there is currently no way to fetch the share count. Thus, TwitterShareCount was removed in version 1.3.0.
- use jsonp instead of fetch API when fetching Facebook share count
- use XHR instead of fetch API when fetching Google Plus share count
- fixed problem with window.open on <=IE9