{"_id":"@arve.knudsen/react-infinite-scroll","_rev":"4-6ca00baa3b9b419ee1c0cb970bfaa80c","name":"@arve.knudsen/react-infinite-scroll","description":"React Infinite Scroll =====================","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.6":{"name":"@arve.knudsen/react-infinite-scroll","version":"0.1.6","description":"React Infinite Scroll =====================","main":"src/react-infinite-scroll.js","scripts":{"test":"grunt lint"},"repository":{"type":"git","url":"git://github.com/aknuds1/react-infinite-scroll.git"},"keywords":["infinite","scroll","react"],"author":{"name":"Arve Knudsen"},"license":"MIT","bugs":{"url":"https://github.com/guillaumervls/react-infinite-scroll/issues"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-uglify":"~0.2.4","grunt-contrib-clean":"~0.5.0","browserify":"~2.35.0","grunt-browserify":"~1.2.9"},"dependencies":{"imagesloaded":"^4.1.0","react":"^15.3.1","react-dom":"^15.3.1"},"gitHead":"a0b7e9620ee6fce4462109d05c1012c6755d66b3","homepage":"https://github.com/aknuds1/react-infinite-scroll#readme","_id":"@arve.knudsen/react-infinite-scroll@0.1.6","_shasum":"2bbe3e06ce3f1c041be3f2790415129e3245d4ea","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"},"dist":{"shasum":"2bbe3e06ce3f1c041be3f2790415129e3245d4ea","tarball":"https://registry.npmjs.org/@arve.knudsen/react-infinite-scroll/-/react-infinite-scroll-0.1.6.tgz","integrity":"sha512-G5ym8D2Pa1BIL20eEZBbAQt5hTF8d2SwgpdlYel+owiAJHhiwA7o84p6r2h1XGufk8So5caW8YW0jetSYUKbKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDW9MpCkI4IgVRVRw31VT7yVFog9nx+jnHcsFAMbgiXxAiEA/XxdrbxX8bG1hZwvWIzxm+urD7f7ka/5djsQ4sohXrc="}]},"maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-infinite-scroll-0.1.6.tgz_1473072033066_0.7958783006761223"}},"0.1.7":{"name":"@arve.knudsen/react-infinite-scroll","version":"0.1.7","description":"React Infinite Scroll =====================","main":"src/react-infinite-scroll.js","scripts":{"test":"grunt lint"},"repository":{"type":"git","url":"git://github.com/aknuds1/react-infinite-scroll.git"},"keywords":["infinite","scroll","react"],"author":{"name":"Arve Knudsen"},"license":"MIT","bugs":{"url":"https://github.com/guillaumervls/react-infinite-scroll/issues"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-contrib-uglify":"~0.2.4","grunt-contrib-clean":"~0.5.0","browserify":"~2.35.0","grunt-browserify":"~1.2.9"},"dependencies":{"react":"^15.3.1","react-dom":"^15.3.1"},"gitHead":"f08a7e0c502e04929a47241fed2fafb29034fbff","homepage":"https://github.com/aknuds1/react-infinite-scroll#readme","_id":"@arve.knudsen/react-infinite-scroll@0.1.7","_shasum":"39d1fe2a8109bae34490bc3b5e9065a626f706d2","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"},"dist":{"shasum":"39d1fe2a8109bae34490bc3b5e9065a626f706d2","tarball":"https://registry.npmjs.org/@arve.knudsen/react-infinite-scroll/-/react-infinite-scroll-0.1.7.tgz","integrity":"sha512-Nb8Covb6oKQ45bwaGv5MV0gPmvpj2M+DGQ42u44FqGfEYSX275m6wVacB8IQodefj30qLVGNUTXRcf14SmFCLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxTPEbOGzQ0F7yX6DXvHxG4YdGVJfjMD5vnPbi+n3ytgIgb+FaFJ01yUcgjOTZcKLw5GLUz7EvzXt/I5IRGuaaZJg="}]},"maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-infinite-scroll-0.1.7.tgz_1473072646749_0.433381010312587"}}},"readme":"React Infinite Scroll\n=====================\n\n*React infinite scroll component*\n\nDemo: http://jsfiddle.net/mb9vJ/2\n\n# Getting started\n\n### Classic :\n\nThe \"ready to use\" [script file](https://raw.github.com/guillaumervls/react-infinite-scroll/master/dist/react-infinite-scroll.min.js)\nis in the `dist` folder.\n\nThen :\n```html\n<script src='react-infinite-scroll.min.js'></script>\n<script>\n  var InfiniteScroll = React.addons.InfiniteScroll;\n</script>\n```\n\n### [Browserify](https://github.com/substack/node-browserify) :\ǹ\nInstall : `npm install react-infinite-scroll`\n\nThen :\n```javascript\nInfiniteScroll = require('react-infinite-scroll')(React);\n```\n\n### Also works with AMD (e.g [RequireJS](http://requirejs.org))\n\nIn this case, it will depend on `react`.\n\n\n# Use in JSX\n\n```html\n<InfiniteScroll\n    pageStart=0\n    loadMore={loadFunc}\n    hasMore={true || false}\n    loader={<div className=\"loader\">Loading ...</div>}>\n  {items} // <-- This is the \"stuff\" you want to load\n</InfiniteScroll>\n```\n\n- `pageStart` : The page number corresponding to the initial `items`, defaults to `0`\n                which means that for the first loading, `loadMore` will be called with `1`\n\n- `loadMore(pageToLoad)` : This function is called when the user scrolls down\n                           and we need to load stuff\n\n- `hasMore` : Boolean stating if we should keep listening to scroll event and\n              trying to load more stuff\n\n- `loader` : Loader element to be displayed while loading stuff - You can use\n             `InfiniteScroll.setDefaultLoader(loader);` to set a defaut loader\n             for all your `InfiniteScroll` components\n\n- `threshold` : The distance between the bottom of the page and the bottom of the\n                window's viewport that triggers the loading of new stuff -\n                *Defaults to `250`*\n\n\n## Changelog\n\n### v0.1.0\n\n`loader` now takes a React component\n(no more component constructor or object `{component:... , props:... , ...}`).\n\n\n## (Re)build\n\n```\nnpm install\ngrunt dist\n```\n\n### Licence\n\n**The MIT License (MIT)**\n\n*Copyright (c) 2013 guillaumervls*\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"time":{"modified":"2022-06-12T14:49:03.833Z","created":"2016-09-05T10:40:35.502Z","0.1.6":"2016-09-05T10:40:35.502Z","0.1.7":"2016-09-05T10:50:49.220Z"},"homepage":"https://github.com/aknuds1/react-infinite-scroll#readme","keywords":["infinite","scroll","react"],"repository":{"type":"git","url":"git://github.com/aknuds1/react-infinite-scroll.git"},"author":{"name":"Arve Knudsen"},"bugs":{"url":"https://github.com/guillaumervls/react-infinite-scroll/issues"},"license":"MIT","readmeFilename":"README.md"}