react-native-pdf
react-native-pdf copied to clipboard
Top of the first page not fully shown when loading PDF with multiple pages.
What react-native
version are you using?
0.59
What react-native-pdf
version are you using?
5.1.7
What platform does your issue occur on? (android/ios/both)
ios
Problem: When loading a pdf with multiple pages, the top of the first page is not scrolled to the top. I have to scroll to show the top of the first page.
Can you share the screenshot of the problem or video?
On Android it works, it shows the top of the page:
This is what happens on IOS, it doesn't show the top of the page, it's scrolled like 20px down:
Can you check it its equal to the height of the status bar of the phone?
@Adaverse Yes, that's true.
@Adaverse Not exactly, I will upload some more screens so you can check.
Height of header:
Overflow of PDF:
Can you check the heights of these two in terms of numbers! And also make sure not to put any padding or margins on the concerned component.
@Adaverse I will try tomorrow. I'm using the Android emulator and IOS emulator.
@Adaverse Could you reproduce the issue in an example project?
@1Jesper1 currently I'm working on android only. It will take time for me to reproduce the same in the IOS environment.
Any update on this? the issue is still there. only the first page, and only on ios platform. Please fix this!