I want to let users share images from my website to twitter.
I used this module react-share to implement this.But it doesn't give an option to share images.
My code looks likes this.
import { ShareButtons, ShareCounts, generateShareIcon, } from 'react-share';
const {
FacebookShareButton,
GooglePlusShareButton,
LinkedinShareButton,
TwitterShareButton,
PinterestShareButton,
VKShareButton,
} = ShareButtons;
<TwitterShareButton
url={shareUrl}
title={title}
className="shareBtn col-md-1 col-sm-1 col-xs-1">
<a className="twitter"><i className="fa fa-twitter" aria-hidden="true"></i></a>
</TwitterShareButton>
Please help me fix this on how to share images to twitter.