1.0.5 • Published 9 years ago

react-native-loading-effect v1.0.5

Weekly downloads
6
License
ISC
Repository
github
Last release
9 years ago

react-native-loading-effect

Demo

Install

npm install react-native-loading-effect --save

Usage

var LoadingEffect = require('react-native-loading-effect');

var YourComponent = React.createClass({
  mixins: [LoadingEffect.Mixin],

  ...
  render() {
    return (
      <View>
        ... 
        <LoadingEffect
          isVisible={this.state.isVisible}
        />  
      </View>
    );  
  }

Showing the LoadingEffect

  this.showLoadingEffect();

Dismissing the LoadingEffect

  this.dismissLoadingEffect();

Props

  • isVisible (Bool) - isRequired.
  • size (String) - size of the indicator. Small has a height of 20, large has a height of 36.
  • color (Number) - color of the indicator. Default gray.
  • overlayWidth (Number) - overlay width.
  • overlayHeight (Number) - overlay height.
  • overlayColor (String) - overlay color.
  • text (String) - text. Default Loading.
  • textColor (String) - text color.
  • textFontSize (Number) - text font size.
1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago