forked from lhandel/react-native-card-stack-swiper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
51 lines (47 loc) · 1.45 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import * as React from 'react';
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
export interface CardStackProps {
style?: StyleProp<ViewStyle>;
secondCardZoom?: number;
loop?: boolean;
renderNoMoreCards?: () => React.ReactNode;
disableTopSwipe?: boolean;
disableBottomSwipe?: boolean;
disableLeftSwipe?: boolean;
disableRightSwipe?: boolean;
verticalSwipe?: boolean;
horizontalSwipe?: boolean;
verticalThreshold?: number;
horizontalThreshold?: number;
outputRotationRange?: [string, string, string]
onSwipeStart?: (index: number) => void;
onSwipeEnd?: (index: number) => void;
onSwiped?: (index: number) => void;
onSwipedLeft?: (index: number) => void;
onSwipedRight?: (index: number) => void;
onSwipedTop?: (index: number) => void;
onSwipedBottom?: (index: number) => void;
onSwipe?: (x: number, y: number) => void;
}
export default class CardStack extends React.Component<CardStackProps> {
constructor(props: CardStackProps);
swipeLeft(): void;
swipeRight(): void;
swipeBottom(): void;
swipeTop(): void;
goBackFromLeft(): void;
goBackFromRight(): void;
goBackFromBottom(): void;
goBackFromTop(): void;
}
export interface CardProps {
style?: StyleProp<ViewStyle>;
onSwiped?: () => void;
onSwipedLeft?: () => void;
onSwipedRight?: () => void;
onSwipedTop?: () => void;
onSwipedBottom?: () => void;
}
export class Card extends React.Component<CardProps> {
constructor(props: CardProps);
}