react-native-pdf 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -168,6 +168,9 @@ react-native run-ios
|
|
|
168
168
|
### ChangeLog
|
|
169
169
|
<details>
|
|
170
170
|
<summary>ChangeLog details</summary>
|
|
171
|
+
v7.0.3
|
|
172
|
+
1. Fixed: RefObject types, and setPage not working in android (#985)
|
|
173
|
+
|
|
171
174
|
v7.0.2
|
|
172
175
|
1. Fixed: `Loaded page is null` error when `bookmarks` is 0 (#978)
|
|
173
176
|
2. Feature: agp 7.3+ fully supported (#980)
|
|
@@ -379,6 +379,7 @@ public class PdfView extends PDFView implements OnPageChangeListener,OnLoadCompl
|
|
|
379
379
|
// page start from 1
|
|
380
380
|
public void setPage(int page) {
|
|
381
381
|
this.page = Math.max(page, 1);
|
|
382
|
+
this.handlePage(this.page - 1);
|
|
382
383
|
}
|
|
383
384
|
|
|
384
385
|
public void setEnableRTL(boolean enableRTL) {
|
package/index.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export interface PdfProps {
|
|
|
65
65
|
onPressLink?: (url: string) => void,
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
export interface PdfRef {
|
|
69
|
+
setPage(pageNumber: number): void
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare const Pdf: React.ForwardRefExoticComponent<PdfProps & React.RefAttributes<PdfRef>>
|
|
69
73
|
|
|
70
74
|
export default Pdf;
|