New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-progress-circle-gradient

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-progress-circle-gradient

test

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
345
increased by23.66%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-progress-circle-gradient

An animated progress circle with an angular gradient.

This project is inspired by this YouTube tutorial.

Installation

npm install react-native-progress-circle-gradient

or

yarn add react-native-progress-circle-gradient

Props

PropDescriptionTypeDefaultRequired
colorsThe color hex values to be used for the angular gradientString[]N/A
backgroundColorThe color hex value for the remaining progressString'#F0F8FF'
durationThe duration of the animation in millisecondsNumber1250
granularitySmaller progress circles can use a smaller granularity to increase performanceNumber200
percentageCompleteThe percentage of progress completed ranging from 0-100Number0
radiusThe radius of the progress circle in points, measured from the center of the strokeNumber100
strokeWidthThe thickness of the progress circleNumber30

Usage

import { CircularProgress } from 'react-native-progress-circle-gradient';

// ...

 <CircularProgress
    backgroundColor={'#1F1B24'}
    radius={100}
    strokeWidth={20}
    percentageComplete={percentageComplete}
    colors={['#0000FF', '#00FF00']}
/>

 <CircularProgress
    backgroundColor={'#1F1B24'}
    radius={100}
    strokeWidth={20}
    percentageComplete={percentageComplete}
    colors={['#0000FF', '#FF0000', '#00FF00']}
/>

 <CircularProgress
    backgroundColor={'#1F1B24'}
    radius={100}
    strokeWidth={20}
    percentageComplete={percentageComplete}
    colors={['#0000FF', '#00FF00', '#0000FF']}
/>

Roadmap

  • Add support for children components (e.g. Text)
  • Add support for when progress > 100%
  • Add support for prop overloading

Steps to Create Package

Create library scaffolding using npx create-react-native-library react-native-progress-circle-gradient. And select the JavaScript Library option. When uploading a package to the npm registry it will first look at the .gitignore for files to exclude. You can also create a .npmignore file but note that will not be joined with the .gitignore file (it will now only look at the .npmignore file). The best way to tell npm would files to include is to list them in the files property in package.json.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Keywords

FAQs

Package last updated on 07 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc