{"name":"rc-swipeout","version":"1.3.3","description":"swipe out ui component for react(web and react-native)","keywords":["react","react-component","swipeout","rc-swipeout","swipe delete"],"homepage":"https://github.com/react-component/swipeout","author":{"name":"rjmuqiang@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/react-component/swipeout.git"},"bugs":{"url":"https://github.com/react-component/swipeout/issues"},"files":["lib","assets/*.css"],"licenses":"MIT","main":"./lib/index.web","config":{"port":8000},"scripts":{"build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint","karma":"rc-tools run karma","test":"rc-tools run test","chrome-test":"rc-tools run chrome-test","coverage":"rc-tools run coverage","rn-start":"node node_modules/react-native/local-cli/cli.js start"},"dependencies":{"babel-runtime":"6.x","object.omit":"~2.0.0","rc-hammerjs":"^0.6.4","react-native-swipeout":"~2.1.1"},"devDependencies":{"expect.js":"0.3.x","hammer-simulator":"0.0.1","pre-commit":"1.x","rc-tools":"~5.10.3","react":"~15.2.1","react-addons-test-utils":"~15.2.1","react-dom":"~15.2.1","react-native":"0.30.0"},"pre-commit":["lint"],"gitHead":"9dd093b53bc9f98149778aa966dc47b4725110df","_id":"rc-swipeout@1.3.3","_shasum":"0f6b0591b640d396ca3c2da8a6e7230a2448249d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"silentcloud","email":"rjmuqiang@gmail.com"},"dist":{"shasum":"0f6b0591b640d396ca3c2da8a6e7230a2448249d","tarball":"http://registry-npm.ywwl.com/rc-swipeout/download/rc-swipeout-1.3.3.tgz","integrity":"sha512-yN7EIhLr0IpuA4EYWP2NtCLop6tRNpLXtYWS1MNNiWoSxkpYwIAVAM74xh5QzzLylQ1u36rOdjljoejUPzTVCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRqZxvJqNKxpiNCp7yIiIWuI6Vj1Ko5FtQSjJm6RmLogIhAILpUIe+0gWF7UOiRfu3TS5AP9CLRrw4b35dE+pyjvv4"}],"size":5492,"noattachment":false,"key":"/rc-swipeout/-/rc-swipeout-1.3.3.tgz"},"maintainers":[{"name":"silentcloud","email":"rjmuqiang@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rc-swipeout-1.3.3.tgz_1494560801447_0.8456056350842118"},"directories":{},"readme":"# rc-swipeout\n---\n\niOS-style swipeout buttons that appear from behind a component (web & react-native support)\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-swipeout.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-swipeout\n[travis-image]: https://img.shields.io/travis/react-component/swipeout.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/swipeout\n[coveralls-image]: https://img.shields.io/coveralls/react-component/swipeout.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/swipeout?branch=master\n\n## Screenshots\n\n![rc-swipeout](https://zos.alipayobjects.com/rmsportal/dqxQTtxrKrGMVEc.gif)\n\n## Installation\n\n`npm install --save rc-swipeout`\n\n## Development\n\n```\nweb:\nnpm install\nnpm start\n\nrn:\ntnpm run rn-start\n```\n\n## Example\n\n- local: http://localhost:8000/examples/\n- online: http://react-component.github.io/swipeout/\n\n## react-native\n\n```\n./node_modules/rc-tools run react-native-init\nreact-native run-ios\n```\n\n## Usage\n\n```js\nimport Swipeout from 'rc-swipeout';\nimport 'rc-swipeout/assets/index.less'; (web only)\n\n<Swipeout\n  left={[\n    {\n      text: 'reply',\n      onPress:() => console.log('reply'),\n      style: { backgroundColor: 'orange', color: 'white' },\n      className: 'custom-class-1'\n    }\n  ]}\n  right={[\n    {\n      text: 'delete',\n      onPress:() => console.log('delete'),\n      style: { backgroundColor: 'red', color: 'white' },\n      className: 'custom-class-2'\n    }\n  ]}\n  onOpen={() => console.log('open')}\n  onClose={() => console.log('close')}\n>\n  <div style={{height: 44}}> swipeout demo </div>\n</Swipeout>\n\n```\n\n\n## API\n\n### props\n\n| name        | description                   | type   | default    |\n|-------------|------------------------|--------|------------|\n| prefixCls       | className prefix     | String | `rc-swipeout` |\n| style       | swipeout style      | Object | `` |\n| left       | swipeout buttons on left      | Array | `[]` |\n| right       | swipeout buttons on right      | Array | `[]` |\n| autoClose       | auto close on button press   | Boolean | `function() {}` |\n| onOpen       |       | Function | `function() {}` |\n| onClose       |       | Function | `function() {}` |\n| disabled       |   disabled swipeout    | Boolean | `false` |\n\n### button props\n\n| name        | description                   | type   | default    |\n|-------------|------------------------|--------|------------|\n| text       | button text     | String | `Click` |\n| style       | button style     | Object | `` |\n| onPress       | button press function      | Function | `function() {}` |\n| className       | button custom class     | String | `` |\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrc-swipeout is released under the MIT license.\n","publish_time":1494560801717,"_cnpm_publish_time":1494560801717,"dist-tags":{"beta":"2.0.0-alpha.2","latest":"2.0.11"}}