forked from xingyuefeng/react-native-signature-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
37 lines (31 loc) · 975 Bytes
/
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
declare module "react-native-signature-canvas" {
import React from "react";
type ImageType = "image/jpeg" | "image/svg+xml";
type DataURL = "Base64";
type ForwardRef<T, P> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
type SignatureViewProps = {
webStyle?: string;
onOK?: (signature: string) => void;
onEmpty?: () => void;
onClear?: () => void;
onBegin?: () => void;
onEnd?: () => void;
descriptionText?: string;
clearText?: string;
confirmText?: string;
customHtml?: string | null | undefined;
autoClear?: boolean;
imageType?: ImageType;
dataURL?: DataURL;
penColor?: string;
backgroundColor?: string;
dotSize?: number,
minWidth?: number,
}
export type SignatureViewRef = {
readSignature: () => void;
clearSignature: () => void;
}
const SignatureView: ForwardRef<SignatureViewRef, SignatureViewProps>
export default SignatureView;
}