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

react-native-indicator

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-indicator

React Native Indicator Component

  • 0.5.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
333
decreased by-20.33%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-indicator

npm react-native VersionEye 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 

Android

It works, have fun!

iOS

Add ART.xcodeproj from node_modules/react-native/React/Libraries/ART to your Libraries then link libART.a. To see more details about Linking Libraries, jump to this.

Usage

Import react-native-indicator as a JavaScript module:

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

Here is currently available types:

  • PulseLoader
  • DotsLoader
  • TextLoader
  • BubblesLoader
  • CirclesLoader
  • BreathingLoader
  • RippleLoader
  • LinesLoader
  • MusicBarLoader
  • EatBeanLoader
  • DoubleCircleLoader
  • RotationCircleLoader
  • RotationHoleLoader
render(){
    return(
        <View>
            <CirclesLoader />
            <TextLoader text="Loading" />
        </View>
    ); 
}

Props

PulseLoader
proptypedefaultdescription
sizenumber30circle's size
colorstring'#1e90ff'indicator's color
frequencynumber500scale's frequency
DotsLoader
proptypedefaultdescription
sizenumber10circle's size
colorstring'#1e90ff'indicator's color
betweenSpacenumber5distance between two dots
TextLoader
proptypedefaultisRequireddescription
textstringnoneyescontents
textStylestyleinheritednotext's style
BubblesLoader
proptypedefaultdescription
sizenumber40circle's size
colorstring'#1e90ff'indicator's color
dotRadiusnumber10each dot's size
CirclesLoader
proptypedefaultdescription
sizenumber40circle's size
colorstring'#1e90ff'indicator's color
dotRadiusnumber8each dot's size
BreathingLoader
proptypedefaultdescription
sizenumber10circle's size
colorstring'#1e90ff'indicator's color
strokeWidthnumber3outline width
frequencynumber800scale's frequency
RippleLoader
proptypedefaultdescription
sizenumber10circle's size
colorstring'#1e90ff'indicator's color
strokeWidthnumber3outline width
LinesLoader
proptypedefaultdescription
colorstring'#1e90ff'indicator's color
barWidthnumber5each bar's width
barHeightnumber40each bar's height
barNumbernumber5the number of bar
betweenSpacenumber2distance between two bars
MusicBarLoader
proptypedefaultdescription
colorstring'#1e90ff'indicator's color
barWidthnumber3each bar's width
barHeightnumber30each bar's height
betweenSpacenumber5distance between two bars
EatBeanLoader
proptypedefaultdescription
colorstring'#1e90ff'indicator's color
sizenumber30indicator's size
DoubleCircleLoader
proptypedefaultdescription
sizenumber30circle's size
colorstring'#1e90ff'indicator's color
RotationCircleLoader
proptypedefaultdescription
sizenumber30indicator's size
colorstring'#1e90ff'indicator's color
rotationSpeednumber800rotation speed
RotationHoleLoader
proptypedefaultdescription
sizenumber40indicator's size
colorstring'#1e90ff'indicator's color
rotationSpeednumber800rotation speed
strokeWidthnumber8circle outline's width
CirclesRotationScaleLoader
proptypedefaultdescription
sizenumber50indicator's size
colorstring'#1e90ff'indicator's color

License

MIT

Keywords

FAQs

Package last updated on 19 Dec 2016

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