cnjon / react-native-pdf-view

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

Error while udating property 'src' of a view managed by "RCTPDFViewAndroid #63

Closed alexaung closed 7 years ago

alexaung commented 7 years ago

I alway got the error "Error while udating property 'src' of a view managed by "RCTPDFViewAndroid".

May I know how to set local file?

let pdfpath = require("../../../pdf/en/0.pdf")

<PDFView ref={(pdf)=>{this.pdfView = pdf;}} src={pdfpath} onLoadComplete = {(pageCount)=>{ this.pdfView.setNativeProps({ zoom: 1.5 }); }} style={styles.pdf}/>

alexaung commented 7 years ago

Ok, I found the issue. src only support absolute path. It can only view from device's local storage file.

Anujmoglix commented 6 years ago

now how to show dynamic path ?