xcarpentier / rn-pdf-reader-js

📄 PDF reader in JavaScript only for Expo - Android & iOS capable
MIT License
388 stars 164 forks source link

App crashes when trying to show pdf in production mode(apk) android and ios #138

Closed Ugur22 closed 3 years ago

Ugur22 commented 3 years ago

Issue Description

I'm using this library in a Vue-native expo project to show pdf's. It works fine in development but once I build an apk the app crashes whenever I'm trying to show a pdf. Does anyone else have this issue? I have tried to debug in production mode but I only got the error below which doesn't really help a lot.

Steps to Reproduce / Code Snippets

  1. go to overview documents
  2. select a file which contains a pdf
  3. new screen opens and shows pdf document

Expected Results

show a pdf document

actual Result

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

This error is located at:
    in RCTView
    in View
    in l
    in Styled(l)
    in l
    in P
    in RCTView
    in View

Additional Information

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.