rc-touchable
    TypeScript icon, indicating that this package has built-in type declarations

    1.3.2 • Public • Published

    rc-touchable


    react touchable component. inspired by react-native.

    NPM version build status Test coverage npm download

    Install

    rc-touchable

    Usage

    import Touchable from 'rc-touchable';
    ReactDOM.render(<Touchable onPress={onPress} activeClassName="active">
    <div>click</div>
    </Touchable>, container);

    API

    name type default description
    disabled boolean false
    onPress ()=>void onPress/onTap callback
    onLongPress ()=>void onLongPress/onLongTap callback
    activeClassName string className applied to child when active
    activeStyle object style applied to child when active
    activeStopPropagation object stop child active propagate to parent

    Development

    npm install
    npm start
    

    Example

    http://localhost:8007/examples/

    online example: http://react-component.github.io/touchable/

    Test Case

    npm test
    npm run chrome-test
    

    Coverage

    npm run coverage
    

    open coverage/ dir

    License

    rc-touchable is released under the MIT license.

    Install

    npm i rc-touchable

    DownloadsWeekly Downloads

    5,774

    Version

    1.3.2

    License

    MIT

    Unpacked Size

    68 kB

    Total Files

    12

    Last publish

    Collaborators

    • paranoidjk
    • yiminghe