mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 16:36:25 +00:00
Summary: This is a workaround for missing PDF url support in Android WebView, which is a general known issue: when tapping a PDF url within WebView, instead of doing nothing, we just let android default intent handle it (e.g. it will open Chrome to load it). This is basically to trick `shouldOverrideUrlLoading()` to return true for the specific url. The drawback is that product code needs to provide the whitelist. The proper fix would be to use PdfRenderer in that method, but it seems like it's only for API >= 21... Differential Revision: D5619383 fbshipit-source-id: f86b930f970dab9a5f57999df69ce94b9508edc9