1 | import React from 'react';
|
2 | import { TouchableOpacityProps, TouchableNativeFeedbackProps, StyleProp, ViewStyle, ActivityIndicatorProps, TextStyle } from 'react-native';
|
3 | import { RneFunctionComponent } from '../helpers';
|
4 | import { IconNode } from '../icons/Icon';
|
5 | import { TextProps } from '../text/Text';
|
6 | export declare type ButtonProps = TouchableOpacityProps & TouchableNativeFeedbackProps & {
|
7 | title?: string | React.ReactElement<{}>;
|
8 | titleStyle?: StyleProp<TextStyle>;
|
9 | titleProps?: TextProps;
|
10 | buttonStyle?: StyleProp<ViewStyle>;
|
11 | type?: 'solid' | 'clear' | 'outline';
|
12 | loading?: boolean;
|
13 | loadingStyle?: StyleProp<ViewStyle>;
|
14 | loadingProps?: ActivityIndicatorProps;
|
15 | containerStyle?: StyleProp<ViewStyle>;
|
16 | icon?: IconNode;
|
17 | iconContainerStyle?: StyleProp<ViewStyle>;
|
18 | iconRight?: boolean;
|
19 | linearGradientProps?: object;
|
20 | TouchableComponent?: typeof React.Component;
|
21 | ViewComponent?: typeof React.Component;
|
22 | disabled?: boolean;
|
23 | disabledStyle?: StyleProp<ViewStyle>;
|
24 | disabledTitleStyle?: StyleProp<TextStyle>;
|
25 | raised?: boolean;
|
26 | iconPosition?: 'left' | 'right' | 'top' | 'bottom';
|
27 | };
|
28 | declare const Button: RneFunctionComponent<ButtonProps>;
|
29 | export { Button };
|
30 | declare const _default: React.FunctionComponent<Omit<ButtonProps, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<ButtonProps>;
|
31 | export default _default;
|