@timesinternet/times-socialshare

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @timesinternet/times-socialshare

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

19 kB

Total Files

4

Last publish

Collaborators

  • mohit.rathi
  • sandeep.panwar
  • til