Closed chandni-solanki closed 2 years ago
Same issue here. When I go from pdf screen to other screen and go back, the pdf disappears.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
same Issue when I move between two tabs has PDF, my PDF disappears and my app crash later on Android
it's possible to work around using useFocusEffect
from "react navigation" and reloading the resource
prop
@wthew are yo able to resolve the issue with useFocusEffect and reloading can you please guide on this I am facing the same issue
I found the solution 🥳
First you should use https://reactnavigation.org/docs/use-focus-effect/ . But that's definitely not enough. As a suggestion, you can give the key property to the PDFView component and connect it to the loading status, like key={loading ? 1:0} If you don't use the key, the other one doesn't matter.
I hope it helps.
Describe the bug For PDF view, while working with react navigation, it gets disappear.
To Reproduce
**Note