# react-native-percentage-circle

> react native percentage circle and also be a progress bar

Latest version **1.0.7** (published 2018-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-percentage-circle
pnpm add react-native-percentage-circle
yarn add react-native-percentage-circle
bun add react-native-percentage-circle
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-05-03 |
| First published | 2016-08-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/react-native-percentage-circle) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 332 |
| Author | jack pu |
| Maintainers | jack_pu |
| Keywords | percentage, circle, progress, bar |

## Links

- npm: https://www.npmjs.com/package/react-native-percentage-circle
- Repository: https://github.com/JackPu/react-native-percentage-circle
- Homepage: https://github.com/JackPu/react-native-percentage-circle#readme
- Issues: https://github.com/JackPu/react-native-percentage-circle/issues
- npm.io page: https://npm.io/package/react-native-percentage-circle

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.3.2

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.7 (latest) — 2018-05-03
- 1.0.6 — 2017-01-20
- 1.0.5 — 2017-01-20
- 1.0.4 — 2017-01-15
- 1.0.3 — 2017-01-15
- 1.0.2 — 2016-11-28
- 1.0.1 — 2016-09-22
- 1.0.0 — 2016-08-30
- 0.9.9 — 2016-08-24
- 0.9.8 — 2016-08-24
- 0.9.7 — 2016-08-24

## README

# react-native-percentage-circle
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)]()
[![npm](https://img.shields.io/npm/v/react-native-percentage-circle.svg?maxAge=2592000)]()



<img width="400" src="http://img1.vued.vanthink.cn/vuede4474d80623ab3d17f2ca5aeb1ccd194.png"/>

React Native Version >= 0.25

React-Native-Percentage-Cirlce is a component which supports you define your percent and draw the circle.And also you can use it as a progress bar.And you can show some data in a circle you want.

[react.js version](https://github.com/JackPu/reactjs-percentage-circle)

<img width="480" src="http://img1.vued.vanthink.cn/vued9c00a0a75734849d01def751ca10f248.png"/>

*This is a screenshot of the Demo*

### Start 

``` bash
npm i react-native-percentage-circle --save

```

``` js

import PercentageCircle from 'react-native-percentage-circle';

//...

render() {
  <View>
    <PercentageCircle radius={35} percent={50} color={"#3498db"}></PercentageCircle>  
  </View>
   <View>
    <PercentageCircle radius={35} percent={50} color={"#3498db"}>
      <Image style={{width:20,height:20}} source={{require('your image')}} />
    </PercentageCircle>  
  </View>
}

```

### Options

| Props        | Type         | Example  | Description  |
| ------------- |:-------------:| -----:|----------:|
| color     | string | '#000' | the color of border |
| bgcolor     | string | '#e3e3e3' | the background color of the circle  |
| innerColor     | string | '#fff' | the color of the inside of the circle  |
| percent      | Number      |  30 | the percent you need |
| radius | Number     |    20 | how large the circle is |
| borderWidth | Number(default 2)     |    5 | the width of  percentage progress bar |
| textStyle | Array   | {fontSize: 24, color: 'red'} | define the style of the text which in the circle |
| children | jsx   | `<Text>123</Text>` | define the children component in the circle |

### Contributions

Your contributions and suggestions are welcome 😄😄😄

### MIT License

---
_Source: https://npm.io/package/react-native-percentage-circle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
