| 28 | }; |
| 29 | |
| 30 | export interface PdfProps { |
| 31 | style?: ReactNative.StyleProp<ReactNative.ViewStyle>, |
| 32 | progressContainerStyle?: ReactNative.StyleProp<ReactNative.ViewStyle>, |
| 33 | source: Source | number, |
| 34 | page?: number, |
| 35 | scale?: number, |
| 36 | minScale?: number, |
| 37 | maxScale?: number, |
| 38 | horizontal?: boolean, |
| 39 | showsHorizontalScrollIndicator?: boolean, |
| 40 | showsVerticalScrollIndicator?: boolean, |
| 41 | scrollEnabled?: boolean, |
| 42 | spacing?: number, |
| 43 | password?: string, |
| 44 | renderActivityIndicator?: (progress: number) => React.ReactElement, |
| 45 | enableAntialiasing?: boolean, |
| 46 | enablePaging?: boolean, |
| 47 | enableRTL?: boolean, |
| 48 | enableAnnotationRendering?: boolean, |
| 49 | enableDoubleTapZoom?: boolean; |
| 50 | /** |
| 51 | * Fit policy. This will adjust the initial zoom of the PDF based on the initial size of the view and the scale factor. |
| 52 | * 0 = fit width |
| 53 | * 1 = fit height |
| 54 | * 2 = fit both |
| 55 | */ |
| 56 | fitPolicy?: 0 | 1 | 2, |
| 57 | trustAllCerts?: boolean, |
| 58 | singlePage?: boolean, |
| 59 | onLoadProgress?: (percent: number,) => void, |
| 60 | onLoadComplete?: (numberOfPages: number, path: string, size: {height: number, width: number}, tableContents?: TableContent[]) => void, |
| 61 | onPageChanged?: (page: number, numberOfPages: number) => void, |
| 62 | onError?: (error: object) => void, |
| 63 | onPageSingleTap?: (page: number, x: number, y: number) => void, |
| 64 | onScaleChanged?: (scale: number) => void, |
| 65 | onPressLink?: (url: string) => void, |
| 66 | } |
| 67 | |
| 68 | export interface PdfRef { |
| 69 | setPage(pageNumber: number): void |
nothing calls this directly
no outgoing calls
no test coverage detected