{"id":27643250,"url":"https://github.com/andy9775/react-native-circularprogress","last_synced_at":"2025-04-24T00:11:24.078Z","repository":{"id":57339230,"uuid":"45762281","full_name":"andy9775/React-Native-CircularProgress","owner":"andy9775","description":"A pure React Native Component for circular progress bars","archived":false,"fork":false,"pushed_at":"2018-04-06T14:38:21.000Z","size":10836,"stargazers_count":45,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T18:39:52.496Z","etag":null,"topics":["javascript","react","react-native","react-native-component","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/andy9775.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-08T01:29:51.000Z","updated_at":"2024-10-16T20:20:20.000Z","dependencies_parsed_at":"2022-09-16T07:21:04.181Z","dependency_job_id":null,"html_url":"https://github.com/andy9775/React-Native-CircularProgress","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/andy9775%2FReact-Native-CircularProgress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy9775%2FReact-Native-CircularProgress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy9775%2FReact-Native-CircularProgress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy9775%2FReact-Native-CircularProgress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andy9775","download_url":"https://codeload.github.com/andy9775/React-Native-CircularProgress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535102,"owners_count":21446508,"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":["javascript","react","react-native","react-native-component","reactjs"],"created_at":"2025-04-24T00:11:23.387Z","updated_at":"2025-04-24T00:11:24.061Z","avatar_url":"https://github.com/andy9775.png","language":"JavaScript","readme":"## React-Native-CircularProgress\nA pure React Native Component for circular progress bars for iOS.\n\n## Demo\n\n\u003ca href=\"https://github.com/andy9775/React-Native-CircularProgress/blob/master/demo.gif\"\u003e\n\u003cimg src=\"https://github.com/andy9775/React-Native-CircularProgress/raw/master/demo.gif\" width=\"350\"\u003e\u003c/a\u003e\n\n## Installation\n1. Install library `npm i --save react-native-progress-circular`\n2. Include in your project `var CircularProgressDisplay = require('react-native-progress-circular');`\n\n## Issues\nAs of react-native 0.17:\u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Due to react-native not yet supporting individual corner radius properties on android, support is lacking.\n\n## Basic Usage\n\n```javascript\n\n'use strict';\nvar React = require('react-native');\nvar CircularProgressDisplay = require('react-native-progress-circular');\nvar {View, Text} = React;\n\nmodule.exports = React.createClass({\n  getInitialState(){\n\n    return { progress:0};\n  },\n  componentDidMount(){\n    // automatically increment the progress\n    var time = 150;\n    var count = 0;\n    setInterval(() =\u003e {\n      if (++count \u003c 15){\n        return;\n      }\n      var progress = this.state.progress + Math.round((Math.random() * 4));\n      if (progress \u003e100) {\n        progress = 0;\n        count = 0;\n      }\n      this.setState({progress: progress});\n    }, time);\n  },\n  render() {\n    var progress = this.state.progress;\n    // displayed inside of the component\n    var innerDisplay = (\n      \u003cView style={{width: 200, height: 200, flex:1, justifyContent: 'center',\n      alignItems: 'center', backgroundColor: '#036282'}}\u003e\n        \u003cText style={{fontSize: 30}}\u003e{progress + \"%\"}\u003c/Text\u003e\n      \u003c/View\u003e\n    );\n\n    return (\u003cView style={{backgroundColor: 'orange',flex:1, flexDirection: 'row'}}\u003e\n      \u003cView style={{ flex: 1, top:200, left: 20}}\u003e\n        \u003cCircularProgressDisplay.Hollow size={200}\n        progressBarWidth={20} outlineWidth={0} outlineColor={'black'}\n        backgroundColor={'orange'} progressBarColor={'#02BAF7'}\n        innerComponent={innerDisplay} rotate={((progress/100)*360)}/\u003e\n      \u003c/View\u003e\n    \u003c/View\u003e);\n\n  }\n});\n```\n\n## Hollow Progress Bar Props\n- **`size`** _(Number:ReactComponent)_ - The size of the component. The resulting components height and width\nare equal\n- **`progressBarWidth`** _(Integer)_ - The width of the circular progress bar.\n- **`progressBarColor`** _(String)_ - The color of the progress bar.\n- **`backgroundColor`** _(String)_ - The color of the center of the component and the zero progress area.\n- **`outlineWidth`** _(Integer)_ - If this prop is present, the resulting component has a round border of this width.\n- **`outlineColor`** _(String)_ - The color of the border outlining the component.\n- **`rotate`** _(Integer)_ - The current progress to track specified in degrees. E.G. 270. Can take a value between 0\nand 360, inclusive.\n- **`innerComponent`** _(ReactComponent)_ - A component to display inside of the round hollow progress bar. Can be used\ndisplay an inner progress bar, or track the current progress with a `\u003cText\u003e` component.\n\n## Filled Progress Bar Props\n- **`size`** _(Number:ReactComponent)_ - The size of the component. The resulting components height and width\nare equal\n- **`rotate`** _(Integer)_ - The current progress to track specified in degrees. E.G. 270. Can take a value between 0\nand 360, inclusive.\n- **`backgroundColor`** _(String)_ - The color of the center of the component and the zero progress area. This is the color\nof the component when no progress has been made.\n- **`progressBarColor`** _(String)_ - The color of the progress bar. This is the color when progress has been made.\n\n---\n\n**MIT Licensed**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy9775%2Freact-native-circularprogress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandy9775%2Freact-native-circularprogress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy9775%2Freact-native-circularprogress/lists"}