wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.6k stars 553 forks source link

Inconsistent `numberOfPages` if `singlePage` is on #674

Open tomas-hartman opened 2 years ago

tomas-hartman commented 2 years ago

What react-native version are you using? 0.68.0 What react-native-pdf version are you using? 6.4.0 What platform does your issue occur on? (android/ios/both) android vs ios Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue 2) Interesting logs

If I set up singlePage={true}, onLoadComplete's callback always gets 1 as numberOfPages arg on android. It always gets correct numberOfPages on iOS.

ghost commented 2 years ago

the same

riteshksriv commented 2 months ago

Same here react-native 0.74.3 "react-native-pdf": "6.7.5",