From 92bc6e73ee4ec8edf08c86d17362ad37286cd496 Mon Sep 17 00:00:00 2001 From: enahum Date: Tue, 21 Nov 2017 12:53:02 -0300 Subject: [PATCH] Fix document library (#1182) --- .../file_attachment_list/file_attachment_document.js | 3 ++- package.json | 2 +- yarn.lock | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/components/file_attachment_list/file_attachment_document.js b/app/components/file_attachment_list/file_attachment_document.js index 0f32b945b..20f1eabed 100644 --- a/app/components/file_attachment_list/file_attachment_document.js +++ b/app/components/file_attachment_list/file_attachment_document.js @@ -180,7 +180,8 @@ export default class FileAttachmentDocument extends PureComponent { OpenFile.openDoc([{ url: `${prefix}${path}`, fileName: file.name, - fileType: file.extension + fileType: file.extension, + cache: false }], (error) => { if (error) { const {intl} = this.context; diff --git a/package.json b/package.json index 39cb9cbcf..b83a5ad7b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "react-native-circular-progress": "jaystramel/react-native-circular-progress", "react-native-cookies": "3.2.0", "react-native-device-info": "0.12.1", - "react-native-doc-viewer": "2.4.9", + "react-native-doc-viewer": "philipphecht/react-native-doc-viewer", "react-native-drawer": "2.5.0", "react-native-exception-handler": "2.3.0", "react-native-fast-image": "1.0.0", diff --git a/yarn.lock b/yarn.lock index 93202a4e5..78832f171 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5032,9 +5032,9 @@ react-native-device-info@0.12.1: version "0.12.1" resolved "https://registry.yarnpkg.com/react-native-device-info/-/react-native-device-info-0.12.1.tgz#659ed145caa5a86a4815904381b25e9ebe0c24f6" -react-native-doc-viewer@2.4.9: +react-native-doc-viewer@philipphecht/react-native-doc-viewer: version "2.4.9" - resolved "https://registry.yarnpkg.com/react-native-doc-viewer/-/react-native-doc-viewer-2.4.9.tgz#60edb4372a96acdb5fa343c75600decb843c7011" + resolved "https://codeload.github.com/philipphecht/react-native-doc-viewer/tar.gz/b1d1967606659fdac5371ec8a5458705f38efa64" react-native-drawer@2.5.0: version "2.5.0"