1.1.0 • Published 8 years ago

react-native-loading-effect-stateless v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

react-native-loading-effect-stateless

Build base on react-native-loading-effect

Changes

  • Use Stateless Functions
  • Rmove showLoadingEffect Function
  • Rmove dismissLoadingEffect Function
  • Add props isCover

Install

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

Usage

import LoadingEffect from 'react-native-loading-effect-stateless';

export class YourComponent extends React.Component {
  ...

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

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.
  • isCover (Bool) - cover the full page. You can click other Components when false. Default true.
1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago