mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
// Type definitions for react-native-flip-card 3.5
|
|
// Project: https://github.com/moschan/react-native-flip-card
|
|
// Definitions by: Jake Chapman <https://github.com/imjakechapman>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import { Component, ReactNode, ComponentClass } from "react";
|
|
import {
|
|
ViewProps,
|
|
TextProps,
|
|
StyleProp,
|
|
TextInputProps,
|
|
ViewStyle
|
|
} from "react-native";
|
|
|
|
// FlipCard
|
|
export interface FlipCardProps {
|
|
style?: StyleProp<ViewStyle>;
|
|
flip?: boolean;
|
|
friction?: number;
|
|
perspective?: number;
|
|
flipHorizontal?: boolean;
|
|
flipVertical?: boolean;
|
|
clickable?: boolean;
|
|
onFlipEnd?: () => void;
|
|
onFlipStart?: () => void;
|
|
alignHeight?: boolean;
|
|
alignWidth?: boolean;
|
|
useNativeDriver?: boolean;
|
|
}
|
|
// Face
|
|
export interface FaceProps {
|
|
chilren: JSX.Element[];
|
|
}
|
|
|
|
// Back
|
|
export interface BackProps {
|
|
flipHorizontal: boolean;
|
|
flipVertical: boolean;
|
|
perspective: number;
|
|
chilren: JSX.Element[];
|
|
}
|
|
|
|
export const Face: ComponentClass<FaceProps>;
|
|
export const Back: ComponentClass<BackProps>;
|
|
export default class FlipCard extends Component<FlipCardProps> {}
|