{"id":21091399,"url":"https://github.com/tomheaton/react-native-checkable-list","last_synced_at":"2026-02-27T15:34:56.996Z","repository":{"id":142513597,"uuid":"613134200","full_name":"tomheaton/react-native-checkable-list","owner":"tomheaton","description":"react native checkable list","archived":false,"fork":false,"pushed_at":"2023-03-15T21:16:47.000Z","size":1882,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T13:44:54.302Z","etag":null,"topics":["react-native","typescript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/react-native-checkable-list","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/tomheaton.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-03-13T00:35:13.000Z","updated_at":"2024-03-04T16:06:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"26edee83-8316-4d18-bb3d-d9d0b12522cf","html_url":"https://github.com/tomheaton/react-native-checkable-list","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tomheaton/react-native-checkable-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomheaton%2Freact-native-checkable-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomheaton%2Freact-native-checkable-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomheaton%2Freact-native-checkable-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomheaton%2Freact-native-checkable-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomheaton","download_url":"https://codeload.github.com/tomheaton/react-native-checkable-list/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomheaton%2Freact-native-checkable-list/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29901752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T14:46:13.553Z","status":"ssl_error","status_checked_at":"2026-02-27T14:46:10.522Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["react-native","typescript"],"created_at":"2024-11-19T21:45:40.609Z","updated_at":"2026-02-27T15:34:56.988Z","avatar_url":"https://github.com/tomheaton.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-checkable-list\n\nreact native checkable list\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./demo.gif\" width=\"200\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n```sh\n# npm\nnpm install react-native-checkable-list\n\n# yarn\nyarn add react-native-checkable-list\n```\n\n## Usage\n\n```jsx\nimport React from \"react\";\nimport { View, Text } from \"react-native\";\nimport CheckableList, { useCheckedItems } from 'react-native-checkable-list';\n\nexport default function App() {\n  const [items, setItems] = React.useState\u003c{ name: string; amount: number }[]\u003e([\n    { name: 'apple', amount: 1 },\n    { name: 'banana', amount: 2 },\n    { name: 'orange', amount: 3 },\n  ]);\n\n  const { checkedItems, setCheckedItems } = useCheckedItems();\n\n  return (\n    \u003cView\u003e\n      \u003cCheckableList\n        items={items}\n        keyExtractor={(item) =\u003e item.name}\n        renderItem={(item) =\u003e (\n          \u003cView\u003e\n            \u003cText\u003e\n              {item.name} x {item.amount}\n            \u003c/Text\u003e\n          \u003c/View\u003e\n        )}\n        onPressItem={(item) =\u003e {\n          console.log('onPressItem', item.name);\n        }}\n        canCheckItem={(item) =\u003e item.name !== 'banana'}\n        checkedItems={checkedItems}\n        setCheckedItems={setCheckedItems}\n      /\u003e\n    \u003c/View\u003e\n  );\n}\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%2Ftomheaton%2Freact-native-checkable-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomheaton%2Freact-native-checkable-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomheaton%2Freact-native-checkable-list/lists"}