3.5.7 • Published 5 months ago
@types/react-native-flip-card v3.5.7
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
// 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 {
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: Fri, 15 Oct 2021 19:01:25 GMT
- Dependencies: @types/react, @types/react-native
- Global values: none
Credits
These definitions were written by Jake Chapman.