forked from dancormier/react-native-swipeout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
35 lines (32 loc) · 1.1 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
import * as React from 'react';
declare module 'react-native-swipeout' {
export interface SwipeoutButtonProperties {
backgroundColor?: string;
color?: string;
component?: JSX.Element;
onPress?(): void;
text?: React.ReactNode;
type?: 'default'|'delete'|'primary'|'secondary';
underlayColor?: string;
disabled?: boolean;
}
export interface SwipeoutProperties {
autoClose?: boolean;
backgroundColor?: string;
close?: boolean;
disabled?: boolean;
left?: SwipeoutButtonProperties[];
onOpen?(sectionId: number, rowId: number, direction: string): void;
onClose?(sectionId: number, rowId: number, direction: string): void;
right?: SwipeoutButtonProperties[];
scroll?(scrollEnabled: boolean): void;
style?: Object;
sensitivity?: number;
buttonWidth?: number;
rowId?: number;
sectionId?: number;
openRight?: boolean;
openLeft?: boolean;
}
export default class Swipeout extends React.Component<SwipeoutProperties,any> {}
}