Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-indicators

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-indicators

Activity indicator collection

  • 0.17.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-indicators

npm license travis

Activity indicator collection for React Native

example

Features

  • Easy to use
  • Consistent look and feel on iOS and Android
  • Can be used as drop-in replacement for ActivityIndicator
  • Configurable appearance and animation
  • Configurable indicator size
  • Native driver based animation
  • Pure javascript implementation
  • Compatible with RN 0.45+, for older versions use 0.14.0

Installation

npm install --save react-native-indicators

Usage

import React, { Component } from 'react';
import {
  BallIndicator,
  BarIndicator,
  DotIndicator,
  MaterialIndicator,
  PacmanIndicator,
  PulseIndicator,
  SkypeIndicator,
  UIActivityIndicator,
  WaveIndicator,
} from 'react-native-indicators';

class Example extends Component {
  render() {
    return (
      <DotIndicator color='white' />
    );
  }
}

Common properties

namedescriptiontypedefault
animationEasingAnimation easing functionFunctionEasing.linear
animationDurationAnimation duration in msNumber1200
animatingAnimation toggleBooleantrue
interactionAnimation is interactionBooleantrue
hidesWhenStoppedHide when not animatingBooleantrue

BallIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
countComponent countNumber8
sizeBase component sizeNumber40

BarIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
countComponent countNumber3
sizeBase component sizeNumber40

DotIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
countComponent countNumber4
sizeBase component sizeNumber16

MaterialIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
sizeBase component sizeNumber40
trackWidthIndicator track widthNumbersize / 10

PacmanIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
sizeBase component sizeNumber48

PulseIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
sizeBase component sizeNumber40

SkypeIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
countComponent countNumber5
sizeBase component sizeNumber40
minScaleMinimum component scaleNumber0.2
maxScaleMaximum component scaleNumber1.0

UIActivityIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
countComponent countNumber12
sizeBase component sizeNumber40

WaveIndicator properties

namedescriptiontypedefault
colorComponent colorStringrgb(0, 0, 0)
countComponent countNumber4
sizeBase component sizeNumber40
waveFactorWave base numberNumber0.54
waveModeWave appearanceStringfill

Possible values for waveMode are fill and outline

Example

git clone https://github.com/n4kz/react-native-indicators
cd react-native-indicators/example
npm install
npm run ios # or npm run android

BSD License

Copyright 2017-2019 Alexander Nazarov. All rights reserved.

Keywords

FAQs

Package last updated on 15 Oct 2019

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