JSPM

react-native-percent-circle

0.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q12173F
  • License MIT

React Native component for creating animated, circular progress with webview canvas

Package Exports

  • react-native-percent-circle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-percent-circle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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