I've taken over a React project and am fumbling incorporating react-share with react-image-lightbox. I'm pretty unfamiliar with React
and Typescript
all together so any insight is much appreciated.
Here's the relevant snippets:
import {
FacebookShareButton,
GooglePlusShareButton,
LinkedinShareButton,
TwitterShareButton,
EmailShareButton,
} from 'react-share'
const Lightbox = require('react-image-lightbox')
render() {
return(
<Lightbox
...
toolbarButtons={['Facebook share button?', 'Twitter share button?']}
...
onCloseRequest={this.handleCloseViewer}
onMovePrevRequest={this.handleViewPrev}
onMoveNextRequest={this.handleViewNext}
/>
)
}
SOLVED: Here's the working snippets.