Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 636 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 636 Bytes

react-native-loading

A lightweight loading for your React Native app.

Installation

npm install react-native-loading --save

Usage

Using the Loading usually looks like this:

var Loading = require('react-native-loading');

var Demo = React.createClass({
  
  getInitialState() {
    return {
      isLoadingVisible: false
    };
  },
  ...

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

License

react-native-loading is available under the MIT license. See the LICENSE file for more info.