{"id":4070,"url":"https://github.com/lwansbrough/react-native-progress-bar","last_synced_at":"2025-04-05T14:09:12.039Z","repository":{"id":30990989,"uuid":"34549326","full_name":"lwansbrough/react-native-progress-bar","owner":"lwansbrough","description":"An animated progress bar for React Native","archived":false,"fork":false,"pushed_at":"2018-07-19T06:07:54.000Z","size":14,"stargazers_count":237,"open_issues_count":17,"forks_count":72,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T13:09:13.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lwansbrough.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-04-25T00:56:45.000Z","updated_at":"2024-07-16T07:40:22.000Z","dependencies_parsed_at":"2022-07-13T02:30:33.765Z","dependency_job_id":null,"html_url":"https://github.com/lwansbrough/react-native-progress-bar","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/lwansbrough%2Freact-native-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwansbrough%2Freact-native-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwansbrough%2Freact-native-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwansbrough%2Freact-native-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwansbrough","download_url":"https://codeload.github.com/lwansbrough/react-native-progress-bar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345854,"owners_count":20924102,"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":[],"created_at":"2024-01-05T20:17:00.143Z","updated_at":"2025-04-05T14:09:12.020Z","avatar_url":"https://github.com/lwansbrough.png","language":"JavaScript","readme":"# react-native-progress-bar\n\nAn animated progress bar for React Native.\n\n![](https://i.imgur.com/EGufppz.gif)\n\n## Getting started\n\n1. `npm install react-native-progress-bar@latest --save`\n\n## Example usage\n\n```javascript\nvar React = require('react-native');\nvar {\n  AppRegistry,\n  StyleSheet,\n  Text,\n  View,\n} = React;\nvar ProgressBar = require('react-native-progress-bar');\n\nvar rnsandbox = React.createClass({\n\n  getInitialState() {\n    return {\n      progress: 0\n    };\n  },\n\n  render() {\n\n    setTimeout((function() {\n      this.setState({ progress: this.state.progress + (0.4 * Math.random())});\n    }).bind(this), 1000);\n\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cText style={styles.welcome}\u003e\n          Welcome to React Native!\n        \u003c/Text\u003e\n        \u003cText style={styles.instructions}\u003e\n          To get started, edit index.ios.js\n        \u003c/Text\u003e\n        \u003cText style={styles.instructions}\u003e\n          Press Cmd+R to reload,{'\\n'}\n          Cmd+Control+Z for dev menu\n        \u003c/Text\u003e\n        \u003cProgressBar\n          fillStyle={{}}\n          backgroundStyle={{backgroundColor: '#cccccc', borderRadius: 2}}\n          style={{marginTop: 10, width: 300}}\n          progress={this.state.progress}\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n});\n\nvar styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n  },\n  welcome: {\n    fontSize: 20,\n    textAlign: 'center',\n    margin: 10,\n  },\n  instructions: {\n    textAlign: 'center',\n    color: '#333333',\n    marginBottom: 5,\n  },\n});\n\nAppRegistry.registerComponent('rnsandbox', () =\u003e rnsandbox);\n\n```\n\n## Properties\n\n| Prop | Description | Default |\n|---|---|---|\n|**`progress`**|The progress value for the progress bar. Ranges from `0..1`.|None|\n|**`easingDuration`**|The time taken to complete the animation in milliseconds.|`500`|\n|**`easing`**|Function from [`Easing`](https://github.com/facebook/react-native/blob/master/Libraries/Animation/Animated/Easing.js).|`Easing.inOut(Easing.ease)`|\n|**`fillStyle`**|The style for the progress bar fill.|None|\n|**`backgroundStyle `**|The style for the progress bar's background.|None|\n|**`style `**|The style for the entire component. This doesn't really differ from the `backgroundStyle` property. You must set width either here or in `backgroundStyle` in order to make sure the component works properly.|See [`ProgressBar.js`](https://github.com/lwansbrough/react-native-progress-bar/blob/master/ProgressBar.js)|\n\n\n## Component methods\n| Method | Description |\n|---|---|\n| **`update(progress)`** | The recommended way to update the progress of the progress bar is to use the `progress` property. If you prefer, you can use this `update` method to update the progress directly. To access this method, set the `ref` property on the `\u003cProgressBar\u003e` and call `this.refs.progressBarName.update(0.3)` |\n","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwansbrough%2Freact-native-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwansbrough%2Freact-native-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwansbrough%2Freact-native-progress-bar/lists"}