1.0.0 • Published 1 year ago

react-native-loading-indicator v1.0.0

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

LoadingIndicator

A better alternative to React Native's default ActivityIndicator

Installation

  npm install react-native-loading-indicator

or

  yarn add react-native-loading-indicator

Features

  • A beautiful collection of animations
  • Crisp and clean. No images. Everything you see is achieved using the Animated API and React Native components
  • Highly customisable. Control the speed, style, iteration count etc
  • Show identical animation across all Platforms

Usage

Just import the component and start using it

import LoadingIndicator from 'react-native-loading-indicator';

const App = () => <LoadingIndicator loading={true} />;

Props

PropsDefaultTypeDescription
loadingfalsebooleanSet to true to show the LoadingIndicator
indicatorStyle{}objectoverride the default indicator styles
duration-intcontrol the speed of the animation by reducing or increasing the animation duration
bezierFn-stringcontrol the easing of the animation using cubic bezier function
iterations-1numbernumber of times the animation should loop. default is infinite
callback() => {}functioncallback function to call after completing the animation if an iteration other than '-1' is specified.
animationNamesquareFlipstringanimation style name. available styles 'squareFlip', 'circleScale'

Note

Since the LoadingIndicator color is white by default, set a background color to see it in action.

Inspiration

Animations ported from SpinKit by Tobias Ahlin.

License

MIT

0.0.1

1 year ago

1.0.0

1 year ago

4.0.0

5 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago