diff --git a/src/components/ImageWithSizeCalculation.js b/src/components/ImageWithSizeCalculation.js index 003fb3247ef5..698da27c610e 100644 --- a/src/components/ImageWithSizeCalculation.js +++ b/src/components/ImageWithSizeCalculation.js @@ -1,10 +1,9 @@ import React, {PureComponent} from 'react'; -import {Image, ActivityIndicator} from 'react-native'; +import {Image} from 'react-native'; import PropTypes from 'prop-types'; import Log from '../libs/Log'; import styles from '../styles/styles'; import makeCancellablePromise from '../libs/MakeCancellablePromise'; -import themeColors from '../styles/themes/default'; const propTypes = { /** Url for image to display */ @@ -30,14 +29,6 @@ const defaultProps = { * it can be appropriately resized. */ class ImageWithSizeCalculation extends PureComponent { - constructor(props) { - super(props); - - this.state = { - isLoading: true, - }; - } - componentDidMount() { this.calculateImageSize(); } @@ -94,26 +85,15 @@ class ImageWithSizeCalculation extends PureComponent { render() { return ( - <> - this.setState({isLoading: false})} - /> - {this.state.isLoading && ( - - )} - + ); } }