You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What react-native-pdf version are you using?
6.6.2
What platform does your issue occur on? (android/ios/both)
iOS
Describe your issue as precisely as possible :
I am viewing the PDF. We are using enablePaging. In my example let's say i am viewing page 5.
In our app there are links overlayed on the PDF screen to navigate to a different screen in the app.
If i navigate to a this different screen and then go 'back' to the PDF screen, it starts to flicker between page number 1 and page number 5 (the page i was on previously).
This is only happening on iOS. If i do the same on Android, after going 'back' into the PDF it stays on page 5 - which is my intended outcome.
What
react-native
version are you using?0.70.6
What
react-native-pdf
version are you using?6.6.2
What platform does your issue occur on? (android/ios/both)
iOS
Describe your issue as precisely as possible :
I am viewing the PDF. We are using enablePaging. In my example let's say i am viewing page 5.
In our app there are links overlayed on the PDF screen to navigate to a different screen in the app.
If i navigate to a this different screen and then go 'back' to the PDF screen, it starts to flicker between page number 1 and page number 5 (the page i was on previously).
This is only happening on iOS. If i do the same on Android, after going 'back' into the PDF it stays on page 5 - which is my intended outcome.
Show us the code you are using?
<Pdf
page={page}
scale={currentScale}
onScaleChanged={scale => setScale(scale)}
enablePaging={true}
source={source}
cache={false}
onLoadComplete={(numberOfPages, filePath) => {
setTotalPages(numberOfPages);
}}
onPageChanged={(page, numberOfPages) => {
pointsFunction(page);
setCurrentPage(page);
setPage(page);
}}
onError={error => {
console.log(error);
}}
onPressLink={uri => {
Linking.openURL(uri);
}}
trustAllCerts={false}
style={{...styles.pdf}}
/>
Any help would be appreciated!
RPReplay_Final1730927213.mov
The text was updated successfully, but these errors were encountered: