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-indicator

v1.2.2

Published

React Native Indicator Component

Downloads

1,973

Readme

react-native-indicator

npm npm npm

A useful indicator component for React Native

Installation

Make sure that you are in your React Native project directory and run:

$ npm install react-native-indicator --save 
$ npm install @react-native-community/art --save

For react-native >= 0.60 ReactNativeART should be auto-linked and no additional action is required.

For react-native < 0.60 you need to link ReactNative ART:

$ react-native link @react-native-community/art

More info, following the Art module instruction to configure.

Usage

Import react-native-indicator as a JavaScript module:

import { CirclesLoader, PulseLoader, TextLoader, DotsLoader, ... } from 'react-native-indicator';

Here is currently available types:

render(){
  return(
    <View>
      <CirclesLoader />
      <TextLoader text="Loading" />
    </View>
  ); 
}

Props

PulseLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 30 | circle's size | | color | string | '#1e90ff' | indicator's color | | frequency | number | 1000 | scale's frequency |

DotsLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 10 | dot's size | | color | string | '#1e90ff' | indicator's color | | betweenSpace | number | 5 | distance between two dots |

TextLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | text | string | 'Loading' | contents | | textStyle | style | inherited | text's style |

BubblesLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 40 | circle's size | | color | string | '#1e90ff' | indicator's color | | dotRadius | number | 10 | each dot's size |

CirclesLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 40 | circle's size | | color | string | '#1e90ff' | indicator's color | | dotRadius | number | 8 | each dot's size |

BreathingLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 10 | circle's size | | color | string | '#1e90ff' | indicator's color | | strokeWidth | number | 3 | outline width | | frequency | number | 800 | scale's frequency |

RippleLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 10 | circle's size | | frequency | number | 1600 | scale's frequency | | color | string | '#1e90ff' | indicator's color | | strokeWidth | number | 3 | outline width |

LinesLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | color | string | '#1e90ff' | indicator's color | | barWidth | number | 5 | each bar's width | | barHeight | number | 40 | each bar's height | | barNumber | number | 5 | the number of bar | | betweenSpace | number | 2 | distance between two bars |

MusicBarLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | color | string | '#1e90ff' | indicator's color | | barWidth | number | 3 | each bar's width | | barHeight | number | 30 | each bar's height | | betweenSpace | number | 5 | distance between two bars |

EatBeanLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | color | string | '#1e90ff' | indicator's color | | size | number | 30 | indicator's size |

DoubleCircleLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 30 | circle's size | | color | string | '#1e90ff' | indicator's color |

RotationCircleLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 30 | indicator's size | | color | string | '#1e90ff' | indicator's color | | rotationSpeed | number | 800 | rotation speed |

RotationHoleLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 40 | indicator's size | | color | string | '#1e90ff' | indicator's color | | rotationSpeed | number | 800 | rotation speed | | strokeWidth | number | 8 | circle outline's width |

CirclesRotationScaleLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 50 | indicator's size | | color | string | '#1e90ff' | indicator's color |

NineCubesLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 20 | each cube's size | | color | string | '#1e90ff' | indicator's color |

LineDotsLoader

warning: this indicator will occupy a whole horizontal space automatically, which means you don't need to set any center props. Just keeping the direction of its parent View is vertical.

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 10 | dot's size | | color | string | '#1e90ff' | indicator's color | | dotsNumber | number | 5 | the number of dots | | betweenSpace | number | 5 | distance between two dots |

ColorDotsLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 15 | each cube's size | | betweenSpace | number | 7 | distance between two dots | | color1 | string | '#ff4500'(red) | 1st color | | color2 | string | '#ffd700'(yellow) | 2nd color | | color3 | string | '#9acd32'(green) | 3rd color |

OpacityDotsLoader

| prop | type | default | description | | ---- | ---- | ---- | ---- | | size | number | 10 | dot's size | | color | string | '#1e90ff' | indicator's color | | betweenSpace | number | 5 | distance between two dots | | speed | number | 200 | change speed |

License

MIT