npm.io
1.1.9 • Published 2 years ago

@types/react-native-snackbar-component

Licence
MIT
Version
1.1.9
Deps
2
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

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.