npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-dashed-progress

v1.0.1

Published

React Native component for creating animated, circular dashed progress with react-native-svg

Downloads

260

Readme

react-native-dashed-progress

license Version npm

React Native component to draw circular dashed progress bar.

Example

image

Installation

  1. Install react-native-dashed-progresscomponent and react-native-svg:

    npm i --save react-native-dashed-progress react-native-svg

    skip step 2 if you are using react-native >= 0.60

  2. Link native code for SVG:

    react-native link react-native-svg

Usage

import {DashedProgress} from 'react-native-dashed-progress';

<DashedProgress
  fill={20} 
  countBars={50} 
  radius={50}
  strokeColor="#00e0ff"/>

Props

| Props | Type | Default | Description | | ---------------- | :-------------------------- | --------- |------------------------------------------------ | | radius | Number | 100 | Radius of circle | barWidth | Number | 10 | Length of dash | indicatorWidth | Number | 20 | Length of indicator | countBars | Number | 100 | Total number of dashes in circle | strokeThickness | Number | 1 | Thickness of dash | fill | Number (>=0 and <=countBars)| 50 | Total number of filled Dashes in circle | text | String | 50% | A Text will display in the circle | strokeLinecap | String | round | Shape used at ends of dash. Possible values: butt,round, square
| trailColor | String | #000000 | Color of unfilled dashes | strokeColor | String | #008000 | Color of filled dashes | showTooltip | Boolean | true | Enabled to display Text inside the circle | tooltipSize | Number | 12 | fontSize of text | tooltipColor | String | #008000 | fontColor of text | tooltipFamily | String | | fontFamily of text | divideEnabled | Boolean | false | Enabled to divide countBars into given dividerNumber | dividerNumber | Number | 10 | Number which will divide by countBars | dividerNumberSize| Number | 9 | fontSize of dividerNumber | showIndicator | Boolean | true | Enabled to display stop indicator in animated Circle | indicatorColor | String | #008000 | Color of indicator | duration | Number | 1000 | Total time to animate dashes | containerStyle | Object | | Extra styling for the main container

Running example app

git clone https://github.com/websoptimization/react-native-dashed-progress.git
cd react-native-dashed-progress/example
npm install
react-native-run-android OR react-native-run-ios

License

MIT