forked from wonday/react-native-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
39 lines (35 loc) · 1.08 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* Copyright (c) 2017-present, Wonday (@wonday.org)
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
import * as ReactNative from 'react-native';
interface Props {
style?: ReactNative.ViewStyle,
source: object,
page?: number,
scale?: number,
minScale?: number,
maxScale?: number,
horizontal?: boolean,
spacing?: number,
password?: string,
activityIndicator?: any,
enableAntialiasing?: boolean,
enablePaging?: boolean,
enableRTL?: boolean,
enableAnnotationRendering?: boolean,
fitPolicy?: number,
onLoadProgress?: (percent: number,) => void,
onLoadComplete?: (numberOfPages: number, path: string) => void,
onPageChanged?: (page: number, numberOfPages: number) => void,
onError?: (error: object) => void,
onPageSingleTap?: (page: number) => void,
onScaleChanged?: (scale: number) => void,
}
declare class Pdf extends React.Component<Props, any> {
}
export default Pdf;