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-arc-progress-bar

v1.2.0

Published

Customizable progress arc bar with an animated cursor to modify the amount progressed

Downloads

118

Readme

react-native-arc-progress-bar

Customizable progress arc with an animated cursor to modify the progress in it. This project is in continuous development, and new functionalities will be considered if an issue is opened.

Behaviour is consistent in both Android and iOS.

ezgif.com-crop5a80f8b0da1dab2d.gif

Features

  • Easy to use
  • Consistent look and feel on iOS and Android
  • Customizable font size, colors, and overall components dimensions and behaviour
  • Dynamic dropdown size and position
  • Configurable styles and views for numbers and texts

Installation

npm install --save react-native-arc-progress-bar react-native-svg

Usage

import React, { useState } from 'react';
import { View } from 'react-native';
import ArcProgressBar, { resolveNewValue } from 'react-native-arc-progress-bar';

const Example = () => {
    const [state, setState] = useState(250);

    const [scrollableMax, absoluteMax] = [800, 2000];
    const onChange = ([alpha, beta]) => {
        setState(resolveNewValue(alpha, beta, absoluteMax, scrollableMax));
    }

    return (
        <>
        <View style={{flex: 1}}>
            <ArcProgressBar
                rectangularSize={250}
                lowerValue={100}
                stackedValue={state}
                maxValue={scrollableMax}
                absoluteMaxValue={absoluteMax}
                showCursor
                showMinMax
                minStyle={{textAlign: "center"}}
                maxStyle={{textAlign: "center"}}
                caption1Text={"MAX\n"}
                caption2Text={"\nMIN"}
                showMin
                showMax
                onChange={onChange}
            />
        </View>
        <View style={{flex: 1}} />
        </>
    );
};

export default Example;

Properties

name | description | type | default :----------------- |:--------------------------------------------- | --------:|:------------------ rectangularSize* | Size of the component | Number | - strokeWidth | Width of the bar | Number | - containerStyle | Styles for container view | Object | - progressStyle | Styles for arc bar view | Object | - minMaxStyle | Styles for min|max view | Object | - captionStyle | Styles for component caption view | Object | - cursorStyle | Styles for animated cursor view | Object | - maxStyle | Styles for inner upper caption view | Object | - minStyle | Styles for inner lower caption view | Object | - maxNumberStyle | Styles for inner upper number | Object | - minNumberStyle | Styles for inner lower number | Object | - showMinMax | Show full inner caption | Boolean | False showCursor | Show animated cursor (if false, no onChange function should be added | Boolean | True showMax | Show max caption | Boolean | False showMin | Show min caption | Boolean | False absoluteMaxValue* | Max value of the whole bar | Number | - lowerValue* | Lower value of the animated bar | Number | - stackedValue* | Current value of the animated bar | Number | - maxValue | Max possible value of the animated bar | Number | - maxText | Text for inner upper caption | String | - minText | Text for inner lower caption | String | - primaryColor | Color for animated bar | Hex color | #047FF9 shadowColor | Color for the shadow of the animated bar | Hex color | #BFDEFD onChange | Callback with new cursor value (args: value) | Function | -

Copyright

Copyright 2019-2020 Alberto Hernandez. All rights reserved.