3.5.7 • Published 5 months ago

@types/react-native-flip-card v3.5.7

Weekly downloads
780
License
MIT
Repository
github
Last release
5 months ago

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

Credits

These definitions were written by Jake Chapman.

3.5.7

5 months ago

3.5.6

5 months ago

3.5.3

8 months ago

3.5.5

6 months ago

3.5.4

7 months ago

3.5.2

3 years ago

3.5.1

3 years ago

3.5.0

6 years ago