cnjon / react-native-pdf-view

React Native PDF View
MIT License
404 stars 167 forks source link

Do PDF files have to be local? Getting Error while updating 'path' with external absolute URL #18

Closed vince-rowe closed 8 years ago

vince-rowe commented 8 years ago

On RN 0.26 and PDF Viewer 0.3.2, getting Error while updating 'path' of a view managed by: RCTPDFViewAndroid when using an external absolute URL https://...example.pdf etc.

Should that work as the documentation is not clear as to whether all PDF's have to be stored locally in the app to view.

Thanks, Vince

vince-rowe commented 8 years ago

In case this helps anyone there are examples included in this module which demonstrate how to load the file from a URL to local storage and then view, in our case we couldn't use this particular route as the file needed authentication headers adding, so we used this module as well as Fetch blob (v0.5.0) https://github.com/wkh237/react-native-fetch-blob to grab the file, hold it in cache and then display it using PDF View.

Thanks, Vince

DeveloperAlly commented 7 years ago

@vince-rowe this is exactly what I am trying to achieve.. could you share code?