UNPKG

react-native-elements

Version:
32 lines (31 loc) 1.41 kB
import React from 'react'; import { ViewStyle, TextStyle, StyleProp } from 'react-native'; import { RneFunctionComponent } from '../helpers'; import { ButtonProps } from '../buttons/Button'; declare type ButtonInformation = { title: string; icon?: string; buttonStyle?: StyleProp<ViewStyle>; titleStyle?: StyleProp<TextStyle>; }; export declare type PricingCardProps = { containerStyle?: StyleProp<ViewStyle>; wrapperStyle?: StyleProp<ViewStyle>; title?: string; price?: string | number; info?: string[]; button?: ButtonProps | ButtonInformation; color?: string; onButtonPress?(): void; titleStyle?: StyleProp<TextStyle>; pricingStyle?: StyleProp<TextStyle>; infoStyle?: StyleProp<TextStyle>; }; declare const PricingCard: RneFunctionComponent<PricingCardProps>; declare const PricingButton: (props: ButtonProps & { color?: string; onButtonPress?: () => void; }) => JSX.Element; export { PricingCard, PricingButton }; declare const _default: React.FunctionComponent<Pick<PricingCardProps & Partial<import("../config").ThemeProps<PricingCardProps>>, "button" | "color" | "containerStyle" | "title" | "titleStyle" | "wrapperStyle" | "price" | "info" | "onButtonPress" | "pricingStyle" | "infoStyle">> | React.ForwardRefExoticComponent<PricingCardProps & Partial<import("../config").ThemeProps<PricingCardProps>>>; export default _default;