1.0.2 • Published 6 years ago

@timesinternet/times-socialshare v1.0.2

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
6 years ago

A React component to show native social share widget and fallback share ui

Installation

Browser

npm install --save @timesinternet/times-socialshare

Browser

import SocialShare from '@timesinternet/times-socialshare';


export class MyComponent extends Component {
  getShareDetail(){
    return {
      title: <title>,
      url: <url>,
      text: <description>
    }
  }
  render(){
    return(
      <div>
        <SocialShare sharedata={this.getShareDetail.bind(this)} headerText="Share"/>      
      </div>   
    )
  }
}

export default MyComponent;

License

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago