Installation
npm install --save @types/react-native-flip-card
Summary
This package contains type definitions for react-native-flip-card (https://github.com/moschan/react-native-flip-card).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-flip-card.
index.d.ts
import { Component, ComponentClass, JSX, ReactNode } from "react";
import { StyleProp, TextInputProps, TextProps, ViewProps, ViewStyle } from "react-native";
// FlipCard
export interface FlipCardProps {
children?: ReactNode[];
style?: StyleProp<ViewStyle> | undefined;
flip?: boolean | undefined;
friction?: number | undefined;
perspective?: number | undefined;
flipHorizontal?: boolean | undefined;
flipVertical?: boolean | undefined;
clickable?: boolean | undefined;
onFlipEnd?: (() => void) | undefined;
onFlipStart?: (() => void) | undefined;
alignHeight?: boolean | undefined;
alignWidth?: boolean | undefined;
useNativeDriver?: boolean | undefined;
}
// 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> {}
Additional Details
- Last updated: Thu, 21 Dec 2023 19:06:51 GMT
- Dependencies: @types/react, react-native
Credits
These definitions were written by Jake Chapman.