MCPcopy
hub / github.com/wonday/react-native-pdf / PdfProps

Interface PdfProps

index.d.ts:30–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30export 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
68export interface PdfRef {
69 setPage(pageNumber: number): void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected