Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, {Component} from 'react';
- import {View, ActivityIndicator} from 'react-native';
- export default class Loading extends Component {
- render() {
- if (this.props.isLoading)
- return (
- <View
- style={{
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- position: 'absolute',
- zIndex: 100,
- backgroundColor: '#00000080',
- }}>
- <ActivityIndicator
- color={this.props.color ? this.props.color : 'blue'}
- />
- </View>
- );
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement