{"id":21389347,"url":"https://github.com/isaced/react-native-cupertino-list","last_synced_at":"2025-07-13T15:33:09.688Z","repository":{"id":44988040,"uuid":"497642583","full_name":"isaced/react-native-cupertino-list","owner":"isaced","description":"a Cupertino/iOS list for React Native","archived":false,"fork":false,"pushed_at":"2023-03-15T12:33:57.000Z","size":529,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-17T01:43:38.357Z","etag":null,"topics":["cupertino","react-native","react-native-component"],"latest_commit_sha":null,"homepage":"","language":"Java","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/isaced.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":"2022-05-29T16:15:59.000Z","updated_at":"2024-08-07T05:02:09.000Z","dependencies_parsed_at":"2022-07-13T05:10:25.157Z","dependency_job_id":null,"html_url":"https://github.com/isaced/react-native-cupertino-list","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2Freact-native-cupertino-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2Freact-native-cupertino-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2Freact-native-cupertino-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2Freact-native-cupertino-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaced","download_url":"https://codeload.github.com/isaced/react-native-cupertino-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225896365,"owners_count":17541485,"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":["cupertino","react-native","react-native-component"],"created_at":"2024-11-22T12:26:04.366Z","updated_at":"2024-11-22T12:26:04.955Z","avatar_url":"https://github.com/isaced.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    react-native-cupertino-list\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA Cupertino/iOS list for React Native.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/facebook/react-native-cupertino-list/blob/HEAD/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"react-native-cupertino-list is released under the MIT license.\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.org/package/react-native-cupertino-list\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/react-native-cupertino-list?color=brightgreen\" alt=\"Current npm package version.\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/iOS-4630EB.svg?style=flat-square\u0026logo=APPLE\u0026labelColor=999999\u0026logoColor=fff\" alt=\"supports iOS\" /\u003e\n  \u003c/a\u003e\n    \n  \u003ca href=\"[https://reactnative.dev/docs/contributing](https://github.com/isaced/react-native-cupertino-list/pulls)\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs welcome!\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/isaced/react-native-cupertino-list/main/screenshot.jpg\" width=\"200\"\u003e\n\u003c/p\u003e\n\n\u003e Currently only tested on iOS.\n\n## Feature\n\n- High-reduction iOS system design style (Cupertino)\n- Dark mode support\n- Easily customize icons based on [react-native-vector-image](https://github.com/oblador/react-native-vector-icons)\n- Based on SectionList, supports all SectionList's own features (such as List header support, Pull to Refresh...)\n\n## Install\n\nnpm\n\n```\nnpm install react-native-cupertino-list\n```\n\nyarn\n\n```\nyarn add react-native-cupertino-list\n```\n\n\u003e You also need to install [react-native-vector-image](https://github.com/oblador/react-native-vector-icons#installation) to display the icons.\n\n## Usage\n\n```javascript\nimport {CupertinoSectionList} from 'react-native-cupertino-list';\n\nexport function HomeScreen() {\n  return (\n      \u003cCupertinoSectionList\n        sections={[\n          {\n            title: 'Settings',\n            data: [\n              {\n                title: 'All Items',\n                icon: 'bulb-outline',\n                forward: {}\n              }\n            ],\n          },\n        ]}\n      /\u003e\n  );\n}\n```\n\n### API\n\n#### CupertinoSectionList.sections\n\n| Property |              Description              |        Type       | Default |\n|:--------:|:-------------------------------------:|:-----------------:|:-------:|\n| title    | Title of this row                     | string            | -       |\n| icon     | Customized row icon (left)            | CupertinoCellIcon | -       |\n| forward  | The element on the right in this row  | ForwardType       | -       |\n| onPress  | Callback executed when select one row | function(event)   | -       |\n\n#### CupertinoCellIcon\n\ntype: `string |  { name?: string; color?: ColorValue } | JSX.Element`\n\n1. string - render by react-native-vector-icons (Ionicons)\n\n```json\n{\n  \"icon\": \"bulb-outline\"\n}\n```\n\n2. if you want to customize the color\n\n```json\n{\n  \"icon\": {\n    \"name\": \"bulb-outline\"\n    \"color\": \"#000\"\n  }\n}\n```\n\n3. If you want to fully customize\n\n```jsx\n{\n  \"icon\": (\n    \u003cView\u003e...\u003c/View\u003e\n  )\n}\n```\n\n#### ForwardType\n\ntype: `{ title?: string; icon?: CupertinoCellIcon; arrowHidden?: boolean; }`\n\n| Property    | Description                                    | Type              | Default                     |\n|-------------|------------------------------------------------|-------------------|-----------------------------|\n| title       | Text displayed to the right of the current row | string            | -                           |\n| icon        | Icon displayed to the right of the current row | CupertinoCellIcon | \"\u003e\" - `ios-chevron-forward` |\n| arrowHidden | hide the icon on the right                     | boolean           | false                       |\n\nexample:\n\n```json\n{\n  \"title\": \"22\",\n  \"icon\": \"ios-chevron-forward\"\n}\n```\n\n### Custom Icon\n\nYou can find the icon you need at [react-native-vector-icons directory](https://oblador.github.io/react-native-vector-icons/), fill the icon name into the `data.icon` field, note that only **Ionicons** are currently supported.\n\n## Other\n\nInspired by [Evan Bacon](https://twitter.com/Baconbrix/status/1526578286783893505), Tanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaced%2Freact-native-cupertino-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaced%2Freact-native-cupertino-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaced%2Freact-native-cupertino-list/lists"}