react-share
Advanced tools
Changelog
4.2.1 (Jul 09, 2020)
assert
utility to get rid of Node.js assert
dependency (MINOR BREAKING CHANGE: the error thrown is slightly different)Changelog
4.2.0 (Jun 07, 2020)
FacebookMessengerShareButton
docs are now included in the readmeVKShareCount
from colliding with an existing window.VK
objectViberShareButton
is now ' '
WhatsappIcon
green color to match with WhatsApp brandShareButton
beforeOnClick
to return void
OKShareCount
for the returned index parameter by adding a sensible fallbackChangelog
4.1.0 (Mar 14, 2020)
TwitterShareButton
won't have hashtags as empty string (#284, #293)OKShareCount
now supports multiple different share counts per page (#289)EmailShareButton
now has default separator
correctly as `` #287)WhatsappShareButton
now has default separator
correctly as ``TumblrShareButton
now has default posttype
correctly as link
TwitterShareButton
now supports "related" array (#281)Changelog
4.0.0 (January 4, 2020)
FacebookMessengerShareButton
and FacebookMessengerShareCount
WeiboIcon
VKShareButton
LinkedinShareButton
MailruShareButton
TumblrShareCount
FacebookShareCount
className
s have been changed{ ...rest }
props are spread to the root element for share buttons and share countsspan
element instead of div
svg
as root element instead of div
iconBgStyle
-> bgStyle
, logoFillColor
-> iconFillColor
Changelog
3.0.1 (August 26, 2019)
ref
on to the share buttonscomponentDidUpdate
instead of componentWillUpdate
Changelog
3.0.0 (March 24, 2019)
<PocketShareButton>
<InstapaperShareButton>
borderRadius
prop for iconsaria-label
is generated for the share buttons. It is based on the network name. Use additionalProps
to override.<LinkedInShareCount/>
. LinkedIn no longer provides an API to fetch share counts.title
and description
from <LinkedInShareButtons/>
.<EmailShareButton/>
includes body
before url
.<EmailShareButton/>
and <ViberShareButton/>
allow customization of separator
.<WeiboShareButton/>
no longer requires image
prop<WeiboShareButton/>
includes url correctly when shared<WeiboShareButton/>
and <OKShareButton/>
open in screen center to prevent window from jumping after opening