UNPKG

492 BTypeScriptView Raw
1/**
2 * T for web or react native
3 */
4export interface SwipeActionPropsType<T> {
5 /** whether button is disabled*/
6 autoClose?: boolean;
7 disabled?: boolean;
8 title?: string;
9 left?: Array<{
10 text: string;
11 onPress?: () => void;
12 style?: T;
13 className?: string;
14 }>;
15 right?: Array<{
16 text: string;
17 onPress?: () => void;
18 style?: T;
19 className?: string;
20 }>;
21 onOpen?: () => void;
22 onClose?: () => void;
23}