{"id":21975492,"url":"https://github.com/lexor90/react-native-infinite-scroll","last_synced_at":"2025-10-13T21:36:39.324Z","repository":{"id":57337687,"uuid":"76381415","full_name":"lexor90/react-native-infinite-scroll","owner":"lexor90","description":"A simple implementation of infinite scrolling for React Native.","archived":false,"fork":false,"pushed_at":"2018-10-31T14:48:43.000Z","size":5,"stargazers_count":20,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T17:37:27.127Z","etag":null,"topics":["android","ios","react-native","scrolling"],"latest_commit_sha":null,"homepage":null,"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/lexor90.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-12-13T17:16:05.000Z","updated_at":"2023-06-19T02:02:35.000Z","dependencies_parsed_at":"2022-09-13T02:32:06.370Z","dependency_job_id":null,"html_url":"https://github.com/lexor90/react-native-infinite-scroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lexor90/react-native-infinite-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexor90%2Freact-native-infinite-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexor90%2Freact-native-infinite-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexor90%2Freact-native-infinite-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexor90%2Freact-native-infinite-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexor90","download_url":"https://codeload.github.com/lexor90/react-native-infinite-scroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexor90%2Freact-native-infinite-scroll/sbom","scorecard":{"id":586612,"data":{"date":"2025-08-11","repo":{"name":"github.com/lexor90/react-native-infinite-scroll","commit":"f6f43aeeee619c27b2e1268af218f0f275b55bb3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T20:41:03.352Z","repository_id":57337687,"created_at":"2025-08-20T20:41:03.352Z","updated_at":"2025-08-20T20:41:03.352Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017043,"owners_count":26085951,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","ios","react-native","scrolling"],"created_at":"2024-11-29T15:55:30.648Z","updated_at":"2025-10-13T21:36:39.287Z","avatar_url":"https://github.com/lexor90.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infinite Scroll\n\nReact native infinite scroll component for Android \u0026 iOS.\n\nTested with Android 4.1+ and iOS 10.\n\n## Install\n\n    npm install --save react-native-infinite-scroll\n\n## Usage\n```js\n\u003cInfiniteScroll\n   // make sure to use a function signature, not this.loadMorePages()!\n  onLoadMoreAsync={this.loadMorePages}\n  horizontal={false}  // true - if you want in horizontal\n  style={styles.scrollView}\n  {...prop}\n\u003e\n  {...children}\n\u003c/InfiniteScroll\u003e\n```\n\n\n### Example\n\n```js\nimport React, { Component } from 'react';\nimport { Text, ListView } from 'react-native';\nimport InfiniteScroll from 'react-native-infinite-scroll';\n\nclass Example extends Component ({\n  getInitialState(){\n    var ds = new ListView.DataSource({rowHasChanged: (r1, r2) =\u003e r1 !== r2});\n    var rows = [\"China\",\"Korea\",\"Singapore\",\"Malaysia\"]\n    return {\n      data: rows,\n      dataSource: ds.cloneWithRows(rows)\n    }\n  },\n  loadMorePage(){\n    //here .. collect the data from server somehow\n    let new_data = ['Japan','Myanmar','India','Thailand'];\n    let rows = this.state.data;\n    rows.push.apply(rows, new_data);\n    this.setState({\n      data: rows,\n      dataSource: this.state.dataSource.cloneWithRows(rows)\n    });\n  },\n  render(){\n    return (\n      \u003cInfiniteScroll\n        horizontal={false}  //true - if you want in horizontal\n        onLoadMoreAsync={this.loadMorePage}\n        distanceFromEnd={10} // distance in density-independent pixels from the right end\n        style={styles.scrollView}\u003e\n          \u003cListView\n          enableEmptySections={true}\n          dataSource={this.state.dataSource}\n          renderRow={(data)=\u003e\u003cText\u003e{data}\u003c/Text\u003e}\n        /\u003e\n      \u003c/InfiniteScroll\u003e\n    );\n  }\n});\n\n\nexport default Example;\n```\n\n### API\n\nYou can pass any [ScrollView](https://facebook.github.io/react-native/docs/scrollview.html) property here.\n\nPlus you can provide the following:\n\n* `onLoadMoreAsync` [Function] *no default* reference callback to be executed whenever we reach the end of our scrolling area (the end is not represented by the right border but it's the right border - offset defined by `distanceFromEnd`)\n* `distanceFromEnd` [Number] *10* the distance we should call `onLoadMoreAsync` before to reach the right border, useful to get the content before the user hits the end (causing it to stop scrolling while content is loading). You should calculate this with regard to the needed time to render new content (network latency/computing time) and estimate your average item size. The right amount of dp is up to you.\n\n## Credits\n\nOriginally based on [infinite-scroll-x](https://github.com/yeyintkoko/infinite-scroll-react-native)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexor90%2Freact-native-infinite-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexor90%2Freact-native-infinite-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexor90%2Freact-native-infinite-scroll/lists"}