Fix can download file for documents in preview screen (#2141)

This commit is contained in:
Elias Nahum 2018-09-20 05:57:44 -03:00 committed by Sudheer
parent c7dbf2f818
commit ce0fc1a2d9

View file

@ -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}