a simple loading effect, based on ActivityIndicatorIOS Component
npm install react-native-loading-effectshell
npm install react-native-loading-effect --save
`Usage
`js
var LoadingEffect = require('react-native-loading-effect');var YourComponent = React.createClass({
mixins: [LoadingEffect.Mixin],
...
render() {
return (
...
isVisible={this.state.isVisible}
/>
);
}
`$3
`js
this.showLoadingEffect();
`$3
`js
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.