Fix can download file for documents in preview screen (#2141)
This commit is contained in:
parent
c7dbf2f818
commit
ce0fc1a2d9
1 changed files with 2 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ export default class ImagePreview extends PureComponent {
|
|||
};
|
||||
|
||||
renderAttachmentDocument = (file) => {
|
||||
const {theme, navigator} = this.props;
|
||||
const {canDownloadFiles, theme, navigator} = this.props;
|
||||
|
||||
return (
|
||||
<View style={[style.flex, style.center]}>
|
||||
|
|
@ -224,6 +224,7 @@ export default class ImagePreview extends PureComponent {
|
|||
ref={(ref) => {
|
||||
this.documents[this.state.index] = ref;
|
||||
}}
|
||||
canDownloadFiles={canDownloadFiles}
|
||||
file={file}
|
||||
theme={theme}
|
||||
navigator={navigator}
|
||||
|
|
|
|||
Loading…
Reference in a new issue