import React from "react"; import { View } from "react-native"; import { IconName } from "../Icon"; import { CellProps } from "./Cell"; type ButtonColor = "primary" | "danger" | "warning" | "textDisabled"; export type ButtonCellProps = { /** * Title of the button cell. */ title: string; /** * The description field of the button cell. This will be shown under the title. */ description?: string; /** * Callback method invoked when a user presses the cell. * Leaving this `undefined` causes the cell to not respond to touch or hover events. */ onPress?: () => void; /** * A boolean value indicating whether or not the cell should be disabled or not. * This value affects the visual appearance of the cell and also makes it not respond to presses. */ disabled?: boolean; /** * Name of the icon to use as a left adornment. */ iconName?: IconName; /** * Color for the button. Can be "primary", "danger", "warning", etc. */ color?: ButtonColor; } & Omit; export declare const ButtonCell: React.ForwardRefExoticComponent<{ /** * Title of the button cell. */ title: string; /** * The description field of the button cell. This will be shown under the title. */ description?: string; /** * Callback method invoked when a user presses the cell. * Leaving this `undefined` causes the cell to not respond to touch or hover events. */ onPress?: () => void; /** * A boolean value indicating whether or not the cell should be disabled or not. * This value affects the visual appearance of the cell and also makes it not respond to presses. */ disabled?: boolean; /** * Name of the icon to use as a left adornment. */ iconName?: IconName; /** * Color for the button. Can be "primary", "danger", "warning", etc. */ color?: ButtonColor; } & Omit & React.RefAttributes>; export {};