diff --git a/react-social.js b/react-social.js index 76c564a..2a88eb0 100644 --- a/react-social.js +++ b/react-social.js @@ -484,6 +484,22 @@ } }); + exports.SmsButton = React.createClass({ + displayName: "SmsButton" + + , mixins: [Button] + + , constructUrl: function () { + var body = encodeURIComponent(this.props.message); + body += (body ? ' ' : '') + encodeURIComponent(this.props.url); + + return [ + "sms:?&body=" + body, + "_self" + ] + } + }); + exports.XingButton = React.createClass({ displayName: "XingButton"