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

Error while updating property ‘params’ of a view managed by: RNPdfRendererView #39

Open
Faust587 opened this issue Mar 10, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Faust587
Copy link

I am encountering an issue where RNPdfRendererView fails to load a PDF file on both Android and iOS.
• On Android, the app crashes with the following error:

Error while updating property 'params' of a view managed by: RNPdfRendererView
Unable to load the document!

• On iOS, the component does not crash but only displays a gray screen.

Steps to Reproduce
1. Download a PDF file using react-native-blob-util and save it in DocumentDir.
2. Pass the file path to RNPdfRendererView as a file:// URI.

Adding a 3-second delay (setTimeout) before setting the path partially resolves the issue, but it doesn't always work

@douglasjunior
Copy link
Owner

Probably is missing the await when downloading the file.

Please compare your code with the Sample project.

@douglasjunior douglasjunior added the help wanted Extra attention is needed label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants