Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复进度少于 50 时在安卓上显示不正确的问题 #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 19 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# 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-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*
_This is a screenshot of the Demo_

### Start
### Start

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

```

``` js

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

//...
Expand All @@ -39,27 +38,24 @@ render() {
</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 |
| 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 |
| rotate | Number | `40` | if you want progress circle starts at 3 o'clock, set this prop into 90 |
| children | jsx | `<Text>123</Text>` | define the children component in the circle |

### Contributions

Your contributions and suggestions are welcome 😄😄😄

### MIT License



Loading