@types/react-native-flip-card
TypeScript icon, indicating that this package has built-in type declarations

3.5.7 • Public • Published

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

Credits

These definitions were written by Jake Chapman.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-flip-card

Weekly Downloads

1,832

Version

3.5.7

License

MIT

Unpacked Size

5 kB

Total Files

5

Last publish

Collaborators

  • types