wonday / react-native-pdf

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

Can not scoll when singlePage change when state change on Android #718

Open phucph1998 opened 1 year ago

phucph1998 commented 1 year ago

What react-native version are you using? 6.4.0 What react-native-pdf version are you using?

What platform does your issue occur on? (android/ios/both) android

Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue const [singlePage, setSinglePage] = useState(false);

  ...

  <PDFView
    ...
    singlePage={singlePage}
    enablePaging
    horizontal
    style={styles.pdf}
    ...
  />

2) Interesting logs

Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?

BraveEvidence commented 1 year ago

This could help https://www.youtube.com/watch?v=Afrd4z1aMNM https://www.youtube.com/watch?v=AHo--82qk2o