Open dioi2000 opened 9 months ago
@dioi2000 have you been able to fix this? I face the same issue
AI helped me fix this. Add the following line to the file:
react-native-pdf/android/src/main/java/org/wonday/pdf/PdfView.java
public void setPage(int page) {
this.page = page > 1 ? page : 1;
+ this.jumpTo(this.page - 1); // Subtract 1 because PDFView uses 0-based page numbers
}
Run npx patch-package react-native-pdf
, and add a postinstall script to your package.json
:
"postinstall": "patch-package"
RN 0.73.4 react-native-pdf 6.7.4 OS: android 13 new arch
setPage not work on android new arch