From b7b8861b757dc13a3854cbdb1d87d4d839444aa3 Mon Sep 17 00:00:00 2001 From: Leland Richardson Date: Tue, 19 Apr 2016 03:51:45 -0700 Subject: [PATCH] Whitelist the 'pdf' extension in the packager Summary:The WebView component in iOS currently does not support displaying PDFs without providing a remote URI or manually including the assets in the xcodeproj itself. This is because the packager has not whitelisted the 'pdf' extension. I've gone ahead and whitelisted the 'pdf extension according to the recommendation by nicklockwood GH comment: https://github.com/facebook/react-native/issues/1846#issuecomment-199302488 Closes https://github.com/facebook/react-native/pull/7004 Differential Revision: D3196019 Pulled By: nicklockwood fb-gh-sync-id: 10a86a9232095f98f277506141de0b8af5b21ab4 fbshipit-source-id: 10a86a9232095f98f277506141de0b8af5b21ab4 --- react-packager/src/Server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-packager/src/Server/index.js b/react-packager/src/Server/index.js index f7b4b354..1856fc96 100644 --- a/react-packager/src/Server/index.js +++ b/react-packager/src/Server/index.js @@ -62,7 +62,7 @@ const validateOpts = declareOpts({ 'bmp', 'gif', 'jpg', 'jpeg', 'png', 'psd', 'svg', 'webp', // Image formats 'm4v', 'mov', 'mp4', 'mpeg', 'mpg', 'webm', // Video formats 'aac', 'aiff', 'caf', 'm4a', 'mp3', 'wav', // Audio formats - 'html', // Document formats + 'html', 'pdf', // Document formats ], }, transformTimeoutInterval: {