mirror of https://github.com/status-im/metro.git
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
This commit is contained in:
parent
c16cfc694b
commit
b7b8861b75
|
@ -62,7 +62,7 @@ const validateOpts = declareOpts({
|
||||||
'bmp', 'gif', 'jpg', 'jpeg', 'png', 'psd', 'svg', 'webp', // Image formats
|
'bmp', 'gif', 'jpg', 'jpeg', 'png', 'psd', 'svg', 'webp', // Image formats
|
||||||
'm4v', 'mov', 'mp4', 'mpeg', 'mpg', 'webm', // Video formats
|
'm4v', 'mov', 'mp4', 'mpeg', 'mpg', 'webm', // Video formats
|
||||||
'aac', 'aiff', 'caf', 'm4a', 'mp3', 'wav', // Audio formats
|
'aac', 'aiff', 'caf', 'm4a', 'mp3', 'wav', // Audio formats
|
||||||
'html', // Document formats
|
'html', 'pdf', // Document formats
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
transformTimeoutInterval: {
|
transformTimeoutInterval: {
|
||||||
|
|
Loading…
Reference in New Issue