tabIndex
prop can now also be a number
- Added
<WorkplaceShareButton />
(Facebook Workplace)
- Added
<ViberShareButton />
- Support
name
prop in share buttons - Fix minor accessibility issue (#156)
- Added support for
webpack 4
tree shaking withsideEffects: false
-flag inpackage.json
- Fix: use
https
for TumblrShareCount - Fix: use
url
as the default email body (instead ofsubject
) - Fix: invoke
beforeOnClick
also 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
logoFillColor
is passed to the icon path
- Removed
platform
dependency 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
additionalProps
to 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.x
as peer dependency. - Added
<EmailShareButton />
. - Added
onShareWindowClose
share button prop (#91).
- Deprecated
title
,description
andpicture
props 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!).
beforeOnClick
no longer has to return Promise
- More permissive dependency versions.
- Minor icon component fix: use
prop-types
lib instead ofReact.propTypes
and useReact.Component
instead 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.php
withhttps://www.facebook.com/sharer/sharer.php
- Added VKShareCount
- Added Whatsapp and Telegram share buttons
- Added
image
prop to VK share link - Added missing
picture
prop to README.md for FacebookShareButton
- Added
beforeOnClick
option for share buttons - Added
hashtag
option for Facebook share button
- Added
title
anddescription
to 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
windowWidth
andwindowHeight
props to share buttons to control opened window dimensions
- Added
title
anddescription
props for FacebookShareButton.title
was 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--googlePlus
instead 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