Skip to content

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

Description

@juaal12

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions