forked from shahnawaz/react-native-barcode-mask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
41 lines (36 loc) · 1004 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
38
39
40
41
import { Component } from 'react';
/* taken from react-native types */
export interface LayoutRectangle {
x: number;
y: number;
width: number;
height: number;
}
/* taken from react-native types */
export interface LayoutChangeEvent {
nativeEvent: {
target: number;
layout: LayoutRectangle;
};
}
export interface BarcodeMaskProps {
width?: number | string;
height?: number | string;
edgeWidth?: number | string;
edgeHeight?: number | string;
edgeColor?: string;
edgeBorderWidth?: number | string;
edgeRadius?: number;
backgroundColor?: string;
outerMaskOpacity?: number;
showAnimatedLine?: boolean;
animatedLineColor?: string;
animatedLineHeight?: number | string;
animatedLineWidth?: number | string,
lineAnimationDuration?: number;
animatedLineOrientation?: string;
useNativeDriver?: boolean;
onLayoutMeasured?: (event: LayoutChangeEvent) => void;
}
declare class BarcodeMask extends Component<BarcodeMaskProps, {}> {}
export default BarcodeMask;