Skip to content
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

PDF Reader is not working for local files on Android build #181

Open
juaal12 opened this issue Nov 17, 2022 · 1 comment
Open

PDF Reader is not working for local files on Android build #181

juaal12 opened this issue Nov 17, 2022 · 1 comment

Comments

@juaal12
Copy link

juaal12 commented Nov 17, 2022

Issue Description

I have an expo managed project where I am using this package for opening and reading PDFs. When it comes to remote PDFs (requests made to server and pdfs retrieved as base64 is working fine) but when I try to load locally stored pdfs within my application assets, is not working. On iOS it works like a charm (both cases are working fine). In addition, this package is working on expo local build using expo start

Steps to Reproduce / Code Snippets

Run an expo managed build using eas build --profile [YOURENVIRONMENT] --platform android --json --non-interactive

Wait until the end of the build and install your package on your device. If you open a remote pdf (server stored pdf) it will work but when trying to open a local pdf asset, it is not working.

image

Expected Results

Pdf should be shown and it is not being shown.

Additional Information

ADB logs:
image

  • React Native version: 0.69.5
  • rn-pdf-reader-js version: 4.1.1
  • Platform(s) (iOS, Android, or both?): Android
@derkrasseleo
Copy link

I am also facing this issue. iOS is working fine, but on android I don't even get that error message. I don't really have a clue, but the url shouldn't start with http:// if its a local file right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants