You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.4 KiB

import React from 'react';
import { ActivityIndicatorProps, StyleProp, TextStyle, TouchableNativeFeedbackProps, TouchableOpacityProps, ViewStyle } from 'react-native';
import { StringOmit, RneFunctionComponent, ThemeSpacing } from '../helpers';
import { IconNode } from '../Icon';
import { TextProps } from '../Text';
export interface ButtonProps extends TouchableOpacityProps, TouchableNativeFeedbackProps {
title?: string | React.ReactElement<{}>;
titleStyle?: StyleProp<TextStyle>;
titleProps?: TextProps;
buttonStyle?: StyleProp<ViewStyle>;
type?: 'solid' | 'clear' | 'outline';
loading?: boolean;
loadingStyle?: StyleProp<ViewStyle>;
loadingProps?: ActivityIndicatorProps;
containerStyle?: StyleProp<ViewStyle>;
icon?: IconNode;
iconContainerStyle?: StyleProp<ViewStyle>;
iconRight?: boolean;
linearGradientProps?: object;
TouchableComponent?: typeof React.Component;
ViewComponent?: typeof React.Component;
disabled?: boolean;
disabledStyle?: StyleProp<ViewStyle>;
disabledTitleStyle?: StyleProp<TextStyle>;
raised?: boolean;
iconPosition?: 'left' | 'right' | 'top' | 'bottom';
uppercase?: boolean;
radius?: number | StringOmit<keyof ThemeSpacing>;
size?: 'sm' | 'md' | 'lg';
color?: StringOmit<'primary' | 'secondary' | 'success' | 'error' | 'warning'>;
}
export declare const Button: RneFunctionComponent<ButtonProps>;