react-native-modal-loader
A progress hud for react apps
Installation
Install the module from npm with npm install react-native-modal-loader --save
.
Demo

Usage
Import module using import Loader from 'react-native-modal-loader';
, then place component at the top of your view container.
Properties
Prop | Default | isRequired | Type | Description |
---|---|---|---|---|
loading | false | true | bool | Whether to show the loader or hide it |
color | grey | false | color | Color of the spinner |
size | small | false | 'small' or 'large' | Size of the spinner |
opacity | 0.4 | false | number | Background opacity value between 0 and 1 |
Example
;;; state = isLoading: false ; { this; }; { return <View style=stylescontainer> <Loader loading=thisstateisLoading color="#ff66be" /> <Button title="Press me!" onPress=thisshowLoader /> </View> ; } const styles = StyleSheet;
Future purposes
- New animation style
- Add prop to write title
License
MIT License. © Kumar Dastan