1.0.7 • Published 6 years ago

react-native-percentage-circle v1.0.7

Weekly downloads
960
License
ISC
Repository
github
Last release
6 years ago

react-native-percentage-circle

Twitter URL npm

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

This is a screenshot of the Demo

Start

npm i react-native-percentage-circle --save
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

PropsTypeExampleDescription
colorstring'#000'the color of border
bgcolorstring'#e3e3e3'the background color of the circle
innerColorstring'#fff'the color of the inside of the circle
percentNumber30the percent you need
radiusNumber20how large the circle is
borderWidthNumber(default 2)5the width of percentage progress bar
textStyleArray{fontSize: 24, color: 'red'}define the style of the text which in the circle
childrenjsx<Text>123</Text>define the children component in the circle

Contributions

Your contributions and suggestions are welcome 😄😄😄

MIT License

1.0.7

6 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.9.9

8 years ago

0.9.8

8 years ago

0.9.7

8 years ago