{"id":23976992,"url":"https://github.com/dozsolti/react-native-use-list","last_synced_at":"2025-07-27T15:37:23.225Z","repository":{"id":153328344,"uuid":"628900440","full_name":"dozsolti/react-native-use-list","owner":"dozsolti","description":"React Native library of easy solutions for common List use cases.","archived":false,"fork":false,"pushed_at":"2023-04-28T11:39:31.000Z","size":441,"stargazers_count":38,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T11:42:10.439Z","etag":null,"topics":["flatlist","sectionlist","virtualizedlist"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dozsolti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-17T08:03:45.000Z","updated_at":"2025-03-17T06:49:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd9821ca-a904-4f21-9cfe-50594a85dee9","html_url":"https://github.com/dozsolti/react-native-use-list","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dozsolti/react-native-use-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozsolti%2Freact-native-use-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozsolti%2Freact-native-use-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozsolti%2Freact-native-use-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozsolti%2Freact-native-use-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dozsolti","download_url":"https://codeload.github.com/dozsolti/react-native-use-list/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozsolti%2Freact-native-use-list/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267378318,"owners_count":24077719,"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-07-27T02:00:11.917Z","response_time":82,"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":["flatlist","sectionlist","virtualizedlist"],"created_at":"2025-01-07T07:17:18.427Z","updated_at":"2025-07-27T15:37:22.907Z","avatar_url":"https://github.com/dozsolti.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Alt text](./banner.jpg)\n\n\u003cdiv align=\"center\"\u003e\n\n![Expo supported](https://img.shields.io/badge/Expo-supported-brightgreen?style=flat-square)\n![npm](https://img.shields.io/npm/dm/react-native-use-list?style=flat-square)\n![GitHub issues](https://img.shields.io/github/issues-raw/dozsolti/react-native-use-list?color=red\u0026style=flat-square)\n![npm](https://img.shields.io/npm/l/react-native-use-list?style=flat-square)\n\n\u003c/div\u003e\n\n## Features\n\n- :open_book: Pagination\n  - Navigate to next or previous page.\n  - Go to a specific page (via index).\n  - Page looping\n  - Item alignment\n- :repeat: Pull to Refresh\n  - isRefreshing state\n- :bulb: _Open for more. Request a feature in the issues tab._\n\n## Supported components\n\n- FlatList\n- VirtualizedList\n- SectionList\n\n## Installation\n\nUsing npm:\n\n```sh\nnpm install --save react-native-use-list\n```\n\nUsing yarn:\n\n```sh\nyarn add react-native-use-list\n```\n\n## Quickstart - Pagination\n\n```js\nimport { useList } from 'react-native-use-list';\n\n\nconst ref = useRef(null);\n\nconst { pageIndex, nextPage, prevPage, indexController } = useList({ ref });\n\nreturn (\n  \u003c\u003e\n    \u003cFlatList\n      ...\n      ref={ref} // \u003c---\n      {...indexController} // \u003c---\n    /\u003e\n    \u003cView style={styles.footer}\u003e\n      \u003cButton text=\"\u003c\" onPress={prevPage} /\u003e\n      \u003cText style={styles.footerIndex}\u003e{pageIndex}\u003c/Text\u003e\n      \u003cButton text=\"\u003e\" onPress={nextPage} /\u003e\n    \u003c/View\u003e\n  \u003c/\u003e\n);\n```\n\n## Quickstart - Pull to refresh\n\n```js\nimport { useList } from 'react-native-use-list';\n\n\nconst [data, setData] = useState([...]);\n\nconst updateData = async () =\u003e {\n  ...\n  setData([...])\n}\n\nconst { isRefreshing, refreshController } = useList({\n  onRefresh: updateData // \u003c---\n});\n\nreturn (\n  \u003c\u003e\n    \u003cText\u003eisRefreshing: {isRefreshing}\u003c/Text\u003e\n    \u003cFlatList\n      data={data}\n      ...\n      {...refreshController} // \u003c---\n    /\u003e\n  \u003c/\u003e\n);\n```\n\n## Folders\n\n```\n/example/examples\n    /Flatlist\n      Pagination.tsx\n      AdvancedPagination.tsx\n      PullToRefresh.tsx\n    /VirtualizedList\n      Pagination.tsx\n      PullToRefresh.tsx\n    /SectionList\n      Pagination.tsx\n      PullToRefresh.tsx\n\n/example/templates (coming soon)\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozsolti%2Freact-native-use-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdozsolti%2Freact-native-use-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozsolti%2Freact-native-use-list/lists"}