{"id":16978687,"url":"https://github.com/srph/react-infinite-scroll","last_synced_at":"2026-05-06T06:36:13.752Z","repository":{"id":57162202,"uuid":"70334505","full_name":"srph/react-infinite-scroll","owner":"srph","description":"A simple infinite scroll React.js component","archived":false,"fork":false,"pushed_at":"2016-10-09T14:59:51.000Z","size":377,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T20:14:23.762Z","etag":null,"topics":["react","react-component"],"latest_commit_sha":null,"homepage":"http://srph.github.io/react-infinite-scroll","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srph.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-08T13:55:56.000Z","updated_at":"2017-02-08T15:31:53.000Z","dependencies_parsed_at":"2022-09-10T09:31:28.637Z","dependency_job_id":null,"html_url":"https://github.com/srph/react-infinite-scroll","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-infinite-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-infinite-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-infinite-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-infinite-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srph","download_url":"https://codeload.github.com/srph/react-infinite-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880550,"owners_count":20525511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","react-component"],"created_at":"2024-10-14T01:44:00.618Z","updated_at":"2025-10-07T00:22:39.692Z","avatar_url":"https://github.com/srph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-infinite-scroll [![npm version](https://img.shields.io/npm/v/@srph/react-infinite-scroll.svg?style=flat)](https://www.npmjs.com/package/@srph/react-infinite-scroll)\n```bash\nnpm i @srph/react-infinite-scroll\n```\nA simple infinite scroll React.js component.\n\n## Why\n- I was a bit frustrated with the existing libraries, so I went to come up with a simpler API.\n- I'd like to keep this library simple -- if you're looking for more advanced features and performant implementations, please check [react-virtualized](https://github.com/bvaughn/react-virtualized) and [react-infinity](https://github.com/nmn/react-infinity).\n\n## Usage\n```js\n\u003cInfinite callback={this.request} disabled={this.state.loading}\u003e\n  {this.state.items((item, i) =\u003e\n  \t\u003cdiv key={i}\u003e{item.name}\u003c/div\u003e\n  )}\n\u003c/Infinite\u003e\n```\n\n## API\n|Prop|Description|Type|\n|-----|-----|-----|\n|callback|The callback to be ran when we reach the offset|`function` (required)|\n|disabled|Flag to run callback once we reach the offset|`boolean` (default: `false`)|\n|offset|Allowance before reaching the offset|`number` (default: `250`)|\n|container|Flag if we're using the window (`false`) or this `div` (requires to be scrollable)|`boolean` (default: `false`)|\n|reverse|Trigger callback when we reach the top instead of the bottom. Useful for chat applications.|`boolean` (default: `false`)|\n\n## Examples\nYou can check the [demo](https://srph.github.io/react-infinite-scroll), or build it yourself:\n```\nnpm run install\nnpm run example:run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrph%2Freact-infinite-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrph%2Freact-infinite-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrph%2Freact-infinite-scroll/lists"}