Skip to content

React Native component for creating animated, circular progress with Pure js. Useful for displaying users points for example.

License

Notifications You must be signed in to change notification settings

hlerenow/react-native-percent-circle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license Version npm

react-native-percent-circular

React Native component for creating animated, circular progress with Pure js. Useful for displaying users points for example. Works on iOS & Android.

Example app

image

Installation

Install library npm i --save react-native-percent-circle

Usage

Import PercentCircle.

import PercentCircle from 'react-native-percent-circle';

Use as follows:

  <PercentCircle percent={79} aninationType="Quad.easeInOut"/>

Configuration

You can configure the passing by following props:

  • radius – the radius of the circle
  • percent - current, percentage fill (from 0 to 100)
  • frameTime - the time of refresh circle
  • fwColor - color of a progress line
  • bgColor - color of a background for progress line
  • duration - the time of animation
  • lineCap - the shape to be used at the ends of the circle. Possible values: round or square or none.
  • fontColor - the color of font
  • fontSize - the size of font (px)
  • animationType - animation types,exmaple: 'Quad.easeInOut' ,Possible values see tween.js

Author

Hlere (595806119@qq.com)

License

MIT

About

React Native component for creating animated, circular progress with Pure js. Useful for displaying users points for example.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages