-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package is only working in debug mode #3
Comments
In my example, I did not add release compile option. In react-native debug mode, resources(js, image, etc.) is loaded from nodejs server ( |
actually, my app is already added signature but it is not working in bath installRelease and assemblyRelease. |
It is working now. For local file view, can't use require but following line will solved the issue. let source = {uri:'file:///'+this.state.filepath,cache:true}; thanks for this package. it is better than react-native-pdf-view. Regards, |
Hi Alexaung, Thanks for your feedback. You are right, |
pdf view is only show in debug mode and need to always run the "react-native start" command.
If I stop or unplug, viewer is only showing loading indicator. I am reading the file from project folder.
<Pdf ref={(pdf)=>{this.pdf = pdf;}} source={require("dicalaws/pdf/en/0.pdf")} page={1} horizontal={false} onLoadComplete={(pageCount)=>{ this.setState({pageCount: pageCount}); console.log(
total page count: ${pageCount}); }} onPageChanged={(page,pageCount)=>{ this.setState({page:page}); console.log(
current page: ${page});}} style={styles.pdf}/>
Regards,
Alex Aung
The text was updated successfully, but these errors were encountered: