Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Using react-share with react-image-lightbox

$
0
0

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}       />     ) }

Viewing all articles
Browse latest Browse all 6287

Trending Articles