react-touchable

1.1.1 • Public • Published

Touchable

Install

npm install react-touchable

Use

var Touchable = require('react-touchable')

var SampleComponent = React.createClass({
  render: function () {
    return (
      <Touchable onTap={this.handleClick}>
        <div>
          This element can be tapped or clicked
        </div>
      </Touchable>
    )
  }
})

Props

Touchable takes a single prop onTap and it is required. onTap fires once a person taps on your element, it is called back with the event.

onTap: React.PropTypes.func.isRequired

Touchable works both on mobile web as well as desktop web.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    3
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-touchable

Weekly Downloads

3

Version

1.1.1

License

MIT

Last publish

Collaborators

  • goatslacker