2.2.2 • Published 1 year ago

@matheusdearaujo/react-native-loading-ellipsis v2.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Native Loading Ellipsis

A fork of a simple library loading dots component.

npm.io

Installation

npm:

npm install --save @matheusdearaujo/react-native-loading-ellipsis

yarn:

yarn add @matheusdearaujo/react-native-loading-ellipsis

Usage

import EllipsisLoading from "@matheusdearaujo/react-native-loading-ellipsis"

Simply place a <EllipsisLoading /> inside of any compnent.

<View style={{ flex: 1 }}>
    <EllipsisLoading />
</View>

Styling Usage

EllipsisLoading is fully customizable using the styleDot, animationDelay, numberOfDots, minOpacity, and dotSize props.

Example usage to change dots color and spacing (as preview):

<View style={{ flex: 1 }}>
    <EllipsisLoading
        styleDot={{
          backgroundColor: "#6c5ce7",
          margin: 5,
        }}
    />
</View>

Documentation

EllipsisLoading Component

NameDescriptionDefaultType
styleDotDot stylesundefinedViewStyle
animationDelayDelay for animation in milliseconds300Number
numberOfDotsNumber of dot to display3Number
minOpacityOpacity of dot animation0.2Number
dotSizeSize of the dots12Number

How to contribute

Read our contribution guide.

Contributors

Author

@matheusdearaujo

LICENSE

This repository use MIT License.