forked from lhandel/react-native-card-flip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
43 lines (36 loc) · 845 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
42
43
import { Component } from "react";
import { StyleProp, ViewStyle } from "react-native";
export type FlipDirection = "y" | "x";
export type Direction = "right" | "left";
export type FlipCardProps = {
style?: StyleProp<ViewStyle>;
duration?: number;
flipZoom?: number;
flipDirection?: FlipDirection;
onFlip?: (index: number) => void;
onFlipEnd?: (index: number) => void;
onFlipStart?: (index: number) => void;
perspective?: number;
};
declare class FlipCard extends Component<FlipCardProps> {
flip: () => void;
tip: ({
direction,
duration,
progress
}: {
direction?: Direction;
duration?: number;
progress?: number;
}) => void;
jiggle: ({
count,
duration,
progress
}: {
count?: number;
duration?: number;
progress?: number;
}) => void;
}
export default FlipCard;