omi/plugins/omi-tap
dntzhang 1e0a850fb5 omi 3.0 2018-05-03 10:46:34 +08:00
..
examples omi 3.0 2018-05-03 10:46:34 +08:00
README.md omi 3.0 2018-05-03 10:46:34 +08:00
index.js omi 3.0 2018-05-03 10:46:34 +08:00
package.json omi 3.0 2018-05-03 10:46:34 +08:00

README.md

omi-tap

Support tap event in your Omi project.


Install

npm install omi-tap

Usage

import Omi from 'omi';
import OmiTap from 'omi-tap';

class App extends Component {

    constructor(){
        super()
        this.tapHandler = this.tapHandler.bind(this)
  }

    tapHandler(evt) {
        alert('Hello Omi + Parcel!')
    }

    render() {
        return (
            <div>
                <OmiTap onTap={this.tapHandler}>
                    <h1>Hello Omi + Parcel 📦 🚀</h1>
                </OmiTap>
            </div>
        )
    }
}

Omi.render(<App />,"#container");

License

This content is released under the MIT License.