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

1.1.9 • Public • Published

Installation

npm install --save @types/react-native-snackbar-component

Summary

This package contains type definitions for react-native-snackbar-component (https://github.com/sidevesh/react-native-snackbar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-snackbar-component.

index.d.ts

import * as React from "react";
import { Animated, TextStyle, ViewStyle } from "react-native";

export interface SnackbarComponentProps {
    accentColor?: string | undefined;
    actionText?: string | undefined;
    messageColor?: string | undefined;
    backgroundColor?: string | undefined;
    distanceCallback?: (() => void) | undefined;
    actionHandler?: (() => void) | undefined;
    left?: number | Animated.Value | undefined;
    right?: number | Animated.Value | undefined;
    top?: number | Animated.Value | undefined;
    bottom?: number | Animated.Value | undefined;
    position?: "bottom" | "top" | undefined;
    textMessage?: string | React.JSX.Element | undefined;
    autoHidingTime?: number | undefined;
    visible?: boolean | undefined;
    containerStyle?: ViewStyle | undefined;
    messageStyle?: TextStyle | undefined;
    actionStyle?: TextStyle | undefined;
}

export default class SnackbarComponent extends React.Component<SnackbarComponentProps> {}

Additional Details

Credits

These definitions were written by Haseeb Majid, and Enrico Balsamo.

/@types/react-native-snackbar-component/

    Package Sidebar

    Install

    npm i @types/react-native-snackbar-component

    Weekly Downloads

    216

    Version

    1.1.9

    License

    MIT

    Unpacked Size

    5.06 kB

    Total Files

    5

    Last publish

    Collaborators

    • types