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

onLoadComplete prop is not getting fired[Android] #899

Open
SimantaRajSarma opened this issue Dec 19, 2024 · 12 comments
Open

onLoadComplete prop is not getting fired[Android] #899

SimantaRajSarma opened this issue Dec 19, 2024 · 12 comments

Comments

@SimantaRajSarma
Copy link

What react-native version are you using?
v0.76.5

What react-native-pdf version are you using?
v6.7.6
What platform does your issue occur on? (android/ios/both)
android
Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
    https://github.com/SimantaRajSarma/testing-native-support
  2. Interesting logs
    nothing
    Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?
https://github.com/SimantaRajSarma/testing-native-support

@wijskinner
Copy link

Also seeing this with latest version

@SimantaRajSarma
Copy link
Author

Also seeing this with latest version

are you saying it was working in previous versions?

@sora-guilllermom
Copy link

Hi, I also ran into this problem. It was working in RN version 75.2, not working on 76.5

@nobelharvards
Copy link
Contributor

nobelharvards commented Dec 20, 2024

For our apps, reverting to 6.7.5 solves the issue.

We had ~6.7.5 in package.json and a recent PR ended up upgrading it to 6.7.6.

Removing the ~ fixed it.

@SimantaRajSarma
Copy link
Author

For our apps, reverting to 6.7.5 solves the issue.

We had ~6.7.5 in package.json and a recent PR ended up upgrading it to 6.7.6.

Removing the ~ fixed it.

didn't work though! can you share the code?

@kumarPraveen08
Copy link

onLoadComplete prop is not working in my case as well. I am also using react native v0.76.5 and react native pdf v6.7.6. it was working with react native v0.75.2 but with latest version it is not working.

@kumarPraveen08
Copy link

onLoadComplete prop is not working in my case as well. I am also using react native v0.76.5 and react native pdf v6.7.6. it was working with react native v0.75.2 but with latest version it is not working.

it is working with react native v0.76.5 and react native pdf v6.7.5

@mdaldoukhi
Copy link

Is there any solution?

@flavioftkode
Copy link

flavioftkode commented Jan 3, 2025

I believe I found a temporary solution: loadComplete and onPageChanged seem to dispatch at the same time, and loadComplete ends up being ignored. A simple delay on loadComplete seems to work.

react-native-pdf+6.7.6.patch

@palmtown
Copy link

palmtown commented Jan 8, 2025

Hello,

Just confirming what everyone here already knows, onLoadComplete does not fire when using react-native 0.76.5. However, downgrading react-native-pdf to 6.7.5 resolves the issue.

@violuke
Copy link

violuke commented Jan 13, 2025

We're also experiencing this issue and have had to downgrade to fix. A solution would be much appreciated 🙏 Thank you

[My internal ref BDEV-1998]

@leahaeussermann
Copy link

Just confirming, that i am also having this issue. A fix would be amazing, thank you

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

10 participants