npm.io
3.5.7 • Published 2 years ago

@types/react-native-flip-card

Licence
MIT
Version
3.5.7
Deps
2
Size
5 kB
Vulns
0
Weekly
0
Stars
51.5K

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.