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
- Last updated: Thu, 21 Dec 2023 19:06:51 GMT
- Dependencies: @types/react, react-native
Credits
These definitions were written by Haseeb Majid, and Enrico Balsamo.