Coder Social home page Coder Social logo

uguraktas / react-native-indicator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangdicoder/react-native-indicator

0.0 1.0 0.0 2.57 MB

๐ŸŒ€A friendly loading indicator component for React Native

License: MIT License

JavaScript 100.00%

react-native-indicator's Introduction

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 

Android

It works, have fun!

iOS

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

If you use podfile

Add pod 'React-ART', :path => '../node_modules/react-native/Libraries/ART' entry ios folder and pod install

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

prop type default description
size number 30 circle's size
color string '#1e90ff' indicator's color
frequency number 1000 scale's frequency
prop type default description
size number 10 dot's size
color string '#1e90ff' indicator's color
betweenSpace number 5 distance between two dots
prop type default description
text string 'Loading' contents
textStyle style inherited text's style
prop type default description
size number 40 circle's size
color string '#1e90ff' indicator's color
dotRadius number 10 each dot's size
prop type default description
size number 40 circle's size
color string '#1e90ff' indicator's color
dotRadius number 8 each dot's size
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
prop type default description
size number 10 circle's size
color string '#1e90ff' indicator's color
strokeWidth number 3 outline width
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
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
prop type default description
color string '#1e90ff' indicator's color
size number 30 indicator's size
prop type default description
size number 30 circle's size
color string '#1e90ff' indicator's color
prop type default description
size number 30 indicator's size
color string '#1e90ff' indicator's color
rotationSpeed number 800 rotation speed
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
prop type default description
size number 50 indicator's size
color string '#1e90ff' indicator's color
prop type default description
size number 20 each cube's size
color string '#1e90ff' indicator's color

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

react-native-indicator's People

Contributors

aamping avatar marcelglaeser avatar uguraktas avatar wangdicoder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.