Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hezhii/rn-circular-progress

Circular progress bar for react native
https://github.com/hezhii/rn-circular-progress

Last synced: about 5 hours ago
JSON representation

Circular progress bar for react native

Awesome Lists containing this project

README

        

# circular-progress-rn

Circular progress bar for react native

## Installation

```sh
npm i react-native-svg
npm i circular-progress-rn
```

## Usage

```js
import CircularProgress from 'circular-progress-rn';

// ...

;
```

## Props

|Property|Type|Default|Description|
|:---|:---|:---|:---|
|style|[style](https://facebook.github.io/react-native/docs/view.html#style)|null|The style of external container.|
|radius|number|100|The radius of circle.|
|strokeWidth|number|10|The stoke width of circle.|
|strokeLinecap|Linecap|null|Shape of both ends.|
|backgroundTrackColor|string|'#d8d8d8'|Color of the background track.|
|trackColor|string|'#fff'|Color of progress bar.|
|progress|number|null|0-100|

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)