UNPKG

react-native-styled-toast

Version:

A theme friendly, easy to use react-native toast component built using styled-components and styled-system.

17 lines (16 loc) 3.03 kB
import { BackgroundProps, BorderProps, ColorProps, FlexboxProps, FontSizeProps, LayoutProps, OpacityProps, PositionProps, ShadowProps, SpaceProps, TextAlignProps } from 'styled-system'; export declare const systemProps: import("styled-system").styleFn; export declare type StyledToastProps = SpaceProps & ColorProps & LayoutProps & FlexboxProps & BackgroundProps & BorderProps & PositionProps & ShadowProps & OpacityProps & { elevation?: number; accentColor?: string; }; export declare const StyledToast: import("styled-components").StyledComponent<any, any, object & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("styled-system").TLengthStyledSystem> & BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("styled-system").TLengthStyledSystem> & PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & OpacityProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & { elevation?: number | undefined; accentColor?: string | undefined; }, string | number | symbol>; export declare const Accent: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>; export declare type TextProps = SpaceProps & ColorProps & TextAlignProps & FontSizeProps; export declare const Heading: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, TextProps, never>; export declare const SubText: import("styled-components").StyledComponent<typeof import("react-native").Text, import("styled-components").DefaultTheme, TextProps, never>; export declare const IconCont: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>; export declare const CloseButtonCont: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, import("styled-components").DefaultTheme, SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;