{"id":16332705,"url":"https://github.com/blaketarter/react-native-paginated-listview","last_synced_at":"2025-03-22T23:31:57.905Z","repository":{"id":57338895,"uuid":"83000017","full_name":"blaketarter/react-native-paginated-listview","owner":"blaketarter","description":"A simple paginated react-native ListView with a few customization options","archived":false,"fork":false,"pushed_at":"2018-02-10T20:36:26.000Z","size":59,"stargazers_count":14,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T05:01:49.205Z","etag":null,"topics":["infinite-scroll","listview","native","pagination","react","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blaketarter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T04:07:43.000Z","updated_at":"2020-07-28T08:37:19.000Z","dependencies_parsed_at":"2022-09-09T10:51:38.903Z","dependency_job_id":null,"html_url":"https://github.com/blaketarter/react-native-paginated-listview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaketarter%2Freact-native-paginated-listview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaketarter%2Freact-native-paginated-listview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaketarter%2Freact-native-paginated-listview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaketarter%2Freact-native-paginated-listview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blaketarter","download_url":"https://codeload.github.com/blaketarter/react-native-paginated-listview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036111,"owners_count":20550661,"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":["infinite-scroll","listview","native","pagination","react","react-native"],"created_at":"2024-10-10T23:32:35.686Z","updated_at":"2025-03-22T23:31:57.641Z","avatar_url":"https://github.com/blaketarter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/blaketarter/react-native-paginated-listview.svg?branch=master)](https://travis-ci.org/blaketarter/react-native-paginated-listview)\n\nreact-native-paginated-listview\n=====\nA simple paginated react-native ListView with a few customization options, usefull\nfor working with paginated data. It can either auto fetch data - like an infinite scrolling list -\nor it can render a \"load more\" button and a loading spinner.\n\n## Installation\n`npm install react-native-paginated-listview --save`\n\n## Basic Usage\nImport the component\n\n`import PaginatedListView from 'react-native-paginated-listview'`\n\n```js\n\u003cPaginatedListView\n  renderRow={(rowData) =\u003e {\n    return (\u003cText\u003e{rowData}\u003c/Text\u003e);\n  }}\n  itemsPerPage={10}\n  onFetch={this.onFetch}\n/\u003e\n```\n\n## API\n* `onFetch: function(pageNumber)`\nMethod that return a promise and resolve the array of data to add to the ListView\n\n* `itemsPerPage: number`\nThe number of items in each page, needed so that the ListView knows when its reached the end of the data\n\n* `initialData: array [optional]`\nThe initial data to populate the ListView with\n\n* `paginationEnabled: boolean [defaults to true]`\nWhether or not pagination is enabled\n\n* `autoFetch: boolean [defaults to true]`\nWhether or not PaginatedListView should auto fetch new data when it reaches the end\n\n* `renderFetchMoreComponent: function [optional]`\nA function that should return the component to be displayed when the end of the data is reached and auto fetch is set to false\n\n* `renderLoadingComponent: function [optional]`\nA function that should return the component to be displayed when data is loading\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaketarter%2Freact-native-paginated-listview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblaketarter%2Freact-native-paginated-listview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaketarter%2Freact-native-paginated-listview/lists"}