wonday / react-native-pdf

A <Pdf /> component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starting Page is little bit scrolled up when {cache: true}

ng-ha opened this issue · comments

What react-native version are you using?
0.71.4
What react-native-pdf version are you using?
0.71.4
What platform does your issue occur on? (android/ios/both)
both

Show us the code you are using?
<Pdf
source={source}
spacing={1}
fitPolicy={2}
enablePaging={false}
trustAllCerts={false}
scale={1}
style={{flex: 1}}
renderActivityIndicator={renderActivityIndicator}
onError={onError}
onPressLink={onPressLink}
/>

first download from uri is rendered correctly,
after that, when get file form cache, starting page is little bit scrolled up.
This issue #213 happens again in v0.71.4

Screenshot 2023-11-27 at 11 57 46

I'm seeing this too. It loads correctly the first time, but then is scrolled a little on subsequent loads.

any update?