UNPKG

895 BTypeScriptView Raw
1/// <reference types="react" />
2import React from 'react';
3import SwipeoutPropType from './PropTypes';
4export declare type SwipeButttonType = {
5 backgroundColor?: string;
6 color?: string;
7 component?: JSX.Element;
8 text?: string;
9 type?: 'default' | 'delete' | 'primary' | 'secondary';
10 underlayColor?: string;
11 disabled?: boolean;
12 onPress?(): void;
13};
14declare class Swipeout extends React.Component<SwipeoutPropType, any> {
15 static defaultProps: {
16 autoClose: boolean;
17 disabled: boolean;
18 onOpen(): void;
19 onClose(): void;
20 };
21 constructor(props: any);
22 renderCustomButton(button: any): {
23 text: any;
24 onPress: any;
25 type: string;
26 component: JSX.Element;
27 backgroundColor: string;
28 color: string;
29 disabled: boolean;
30 };
31 render(): JSX.Element;
32}
33export default Swipeout;