import * as React from 'react';
import { Image } from 'react-native';

const Loading = require('../assets/images/GIF/Loading.gif');

interface LightningIndicatorProps {
    size?: number;
}

function LoadingIndicator(props: LightningIndicatorProps) {
    const { size } = props;

    return (
        <Image
            source={Loading}
            style={{
                alignSelf: 'center',
                width: size || 100,
                height: size || 100
            }}
        />
    );
}

export default LoadingIndicator;
