{"name":"rc-swipeout","version":"2.0.10","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","es","dist","assets/*.css"],"licenses":"MIT","main":"./lib/index","module":"./es/index","config":{"port":8000,"entry":{"rc-swipeout":["./index.js","./assets/index.less"]}},"scripts":{"dist":"rc-tools run dist","watch-tsc":"rc-tools run watch-tsc","compile":"rc-tools run compile --babel-runtime","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-test run karma","test":"rc-test run test","chrome-test":"rc-test run chrome-test","coverage":"rc-test run coverage","rn-start":"node node_modules/react-native/local-cli/cli.js start","prepublish":"rc-tools run guard","prepare":"rc-tools run guard","prepublishOnly":"rc-tools run guard"},"dependencies":{"babel-runtime":"6.x","classnames":"2.x","rc-gesture":"~0.0.22","react-native-swipeout":"^2.2.2"},"devDependencies":{"@types/mocha":"~2.2.32","@types/react":"latest","@types/react-dom":"latest","@types/react-native":"latest","expect.js":"0.3.x","pre-commit":"1.x","rc-test":"~6.0.3","rc-tools":"6.x","react":"^16.0.0","react-dom":"^16.0.0","react-native":"~0.55.4","react-native-index-page":"~0.2.0","react-navigation":"1.0.0-beta.12"},"typings":"./lib/index.d.ts","pre-commit":["lint"],"gitHead":"fd1e7b59003a244c7b9cf8b6a036b57f9d428a27","_id":"rc-swipeout@2.0.10","_npmVersion":"5.8.0","_nodeVersion":"9.3.0","_npmUser":{"name":"paranoidjk","email":"hust2012jiangkai@gmail.com"},"dist":{"integrity":"sha512-Y+CZjwVfmMXezVhsx8DlhM8HYFg0OenUS+U7QUo6yv3FT0b0PMjk7+S0VVDzzhRgtUaMd/oUf03WiYmBI+Nztw==","shasum":"f5c0ebc3f0c71f3256063f6deeb57838576c9fb8","tarball":"http://registry-npm.ywwl.com/rc-swipeout/download/rc-swipeout-2.0.10.tgz","fileCount":31,"unpackedSize":296580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbH0j8CRA9TVsSAnZWagAACksP/iwROYsacN1D9AH9M/bC\nCZbEMaFgdiKoNW+1qZqnuDJdvDXxBT9tE+12oqZK2AboWch0vUdBOQdwUa5s\nMyxMvtLWB0u+MEZMd7RjI8vgqNWe5sn5pn7n9sNiJEe0Zfi/4iW7oCWAyIzs\nWHqrAzMrNfq9lNpVUFjBLgjwdhR/+35+g4y2IZs8WK57Vg3+1TwtS8uizM7F\n41QhPbYOxcH1HeTjRvwVfK3EYTNdCdonGXAWzE6meggKQ3XQf4EVOKx1XG0s\nsd5VW6nRLRz54N4XZwo2ZiUUu9KD7q8lgImnNq/GHvVTVtTVmSwEZW1UESJN\nE0sWd28XKhPrP3xoYZz0RzpGyoAHg3BodyfVs09eZVaUM8bProsbPZa+CYly\nE5okdUjGIJi8B7u+JXsZnKeHcOcWws208rnzNlJ6mynSkFoIKldFNjG9rsSV\nEkLYYFo/kZc5ETwgrLB6k7OGMTPlLpDhzSvTxxlUm0IkBc9XVUzIEZxI6Qfi\nFptMhPzir/WxOq+SPqd+GhXLI2gAJ5DdBCRl1NzEyE23vbF/3mYyhWOwPsY7\nuZAjGrINPuc/7YeUvcgFQSzSzoBhhxJfuc9SXF7s06myAx8wjtFpfVju5TQv\n+9VvJh8/hw4qv2jH06eVM05+9WWbUwDerrP+FYpM/eK/Oq9dBSOslUfZGrY7\npg4x\r\n=F8X2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBXCyMYZWOxnVUe7VIz0UBh8xk0z2tgtw+G+B4hC+JUAiEA/GRygBnP31jRxEbH2uTYf6H0aEyT9Y+Qpse+xvdSB+s="}],"size":65811,"noattachment":false,"key":"/rc-swipeout/-/rc-swipeout-2.0.10.tgz"},"maintainers":[{"email":"hust2012jiangkai@gmail.com","name":"paranoidjk"},{"email":"quentinyang1985@gmail.com","name":"quentinyang1985"},{"email":"rjmuqiang@gmail.com","name":"silentcloud"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rc-swipeout_2.0.10_1528776954634_0.25588499989754054"},"_hasShrinkwrap":false,"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":1528776955866,"_cnpm_publish_time":1528776955866,"dist-tags":{"beta":"2.0.0-alpha.2","latest":"2.0.11"}}