diff --git a/src/components/AttachmentView.js b/src/components/AttachmentView.js index cf9814149322..2d6bc3536c53 100755 --- a/src/components/AttachmentView.js +++ b/src/components/AttachmentView.js @@ -113,6 +113,7 @@ const AttachmentView = (props) => { ); diff --git a/src/components/ImageView/index.js b/src/components/ImageView/index.js index e070dddd2770..2bffa7787088 100644 --- a/src/components/ImageView/index.js +++ b/src/components/ImageView/index.js @@ -1,12 +1,13 @@ import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; -import {View, Pressable} from 'react-native'; +import {View} from 'react-native'; import Image from '../Image'; import styles from '../../styles/styles'; import * as StyleUtils from '../../styles/StyleUtils'; import * as DeviceCapabilities from '../../libs/DeviceCapabilities'; import withWindowDimensions, {windowDimensionsPropTypes} from '../withWindowDimensions'; import FullscreenLoadingIndicator from '../FullscreenLoadingIndicator'; +import PressableWithoutFeedback from '../Pressable/PressableWithoutFeedback'; const propTypes = { /** Whether source url requires authentication */ @@ -18,6 +19,10 @@ const propTypes = { /** URL to full-sized image */ url: PropTypes.string.isRequired, + + /** image file name */ + fileName: PropTypes.string.isRequired, + ...windowDimensionsPropTypes, }; @@ -266,7 +271,7 @@ class ImageView extends PureComponent { onLayout={this.onContainerLayoutChanged} style={[styles.imageViewContainer, styles.overflowAuto, styles.pRelative]} > - - + {this.state.isLoading && }