{"id":21117132,"url":"https://github.com/hezhii/rn-circular-slider","last_synced_at":"2025-07-08T20:30:34.611Z","repository":{"id":34435179,"uuid":"179012592","full_name":"hezhii/rn-circular-slider","owner":"hezhii","description":"React Native circular slider based on react-native-svg","archived":false,"fork":false,"pushed_at":"2023-01-03T18:56:48.000Z","size":2019,"stargazers_count":39,"open_issues_count":29,"forks_count":14,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-23T20:04:42.641Z","etag":null,"topics":["circle","circular","react-native","slider","svg"],"latest_commit_sha":null,"homepage":"","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/hezhii.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-04-02T06:25:00.000Z","updated_at":"2024-07-28T07:18:11.000Z","dependencies_parsed_at":"2023-01-15T07:15:26.393Z","dependency_job_id":null,"html_url":"https://github.com/hezhii/rn-circular-slider","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hezhii/rn-circular-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Frn-circular-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Frn-circular-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Frn-circular-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Frn-circular-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hezhii","download_url":"https://codeload.github.com/hezhii/rn-circular-slider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Frn-circular-slider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264343444,"owners_count":23593711,"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":["circle","circular","react-native","slider","svg"],"created_at":"2024-11-20T02:39:02.499Z","updated_at":"2025-07-08T20:30:34.215Z","avatar_url":"https://github.com/hezhii.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rn-circular-slider\n\nReact Native circular slider based on [react-native-svg](https://github.com/react-native-community/react-native-svg)\n\n\u003cdiv align=center\u003e\u003cimg src=\".github/screenshot.gif\"\u003e\u003c/div\u003e\n\n## Installation\n\nInstall the `rn-circular-slider` package in your React Native project.\n\n```bash\n$ yarn add rn-circular-slider\n```\n\nNext, install [react-native-svg](https://github.com/react-native-community/react-native-svg)\n\n```bash\n$ yarn add react-native-svg\n$ react-native link react-native-svg\n```\n\n## Usage\n\n```js\nimport React, { Component } from 'react';\nimport { StyleSheet, View, Text } from 'react-native';\n\nimport CircularSlider from 'rn-circular-slider'\n\nconsole.disableYellowBox = true\n\nexport default class App extends Component {\n  state = {\n    value: 50\n  }\n\n  render() {\n    const { value } = this.state\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cCircularSlider\n          step={2}\n          min={10}\n          max={80}\n          value={value}\n          onChange={value =\u003e this.setState({ value })}\n          contentContainerStyle={styles.contentContainerStyle}\n          strokeWidth={10}\n          buttonBorderColor=\"#3FE3EB\"\n          buttonFillColor=\"#fff\"\n          buttonStrokeWidth={10}\n          openingRadian={Math.PI / 4}\n          buttonRadius={10}\n          linearGradient={[{ stop: '0%', color: '#3FE3EB' }, { stop: '100%', color: '#7E84ED' }]}\n        \u003e\n          \u003cText style={styles.value}\u003e{value}\u003c/Text\u003e\n        \u003c/CircularSlider\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n  },\n  contentContainerStyle: {\n    justifyContent: 'center',\n    alignItems: 'center'\n  },\n  value: {\n    fontWeight: '500',\n    fontSize: 32,\n    color: '#3FE3EB'\n  }\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Frn-circular-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhezhii%2Frn-circular-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Frn-circular-slider/lists"}