content: /* @flow */
  
  import React from 'react';
  import { ActivityIndicatorIOS } from 'react-native';
  import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
  import computeProps from 'native-base/Utils/computeProps';
  
  
  export default class SpinnerNB extends NativeBaseComponent {
  
    prepareRootProps() {
      const type = {
        height: 80,
      };
  
      const defaultProps = {
        style: type,
      };
  
      return computeProps(this.props, defaultProps);
    }
  
  
    render() {
      const getColor = () => {
        if (this.props.color) {
          return this.props.color;
        } else if (this.props.inverse) {
          return this.getTheme().inverseSpinnerColor;
        }
  
        return this.getTheme().defaultSpinnerColor;
      };
  
      return (
        <ActivityIndicatorIOS
          {...this.prepareRootProps()}
          color={getColor()}
          size={this.props.size ? this.props.size : 'large'}
        />
          );
    }
  
  }
  