UNPKG

4.81 kBTypeScriptView Raw
1import React from 'react';
2import { ButtonProps } from './Button';
3import { RneFunctionComponent } from '../helpers';
4export declare type FABProps = ButtonProps & {
5 color?: string;
6 size?: 'large' | 'small';
7 placement?: 'left' | 'right';
8 visible?: boolean;
9 upperCase?: boolean;
10};
11declare const FAB: RneFunctionComponent<FABProps>;
12export { FAB };
13declare const _default: React.FunctionComponent<Pick<import("react-native").TouchableOpacityProps & import("react-native").TouchableNativeFeedbackProps & {
14 title?: string | React.ReactElement<{}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
15 titleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
16 titleProps?: import("..").TextProps;
17 buttonStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
18 type?: "solid" | "clear" | "outline";
19 loading?: boolean;
20 loadingStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
21 loadingProps?: import("react-native").ActivityIndicatorProps;
22 containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
23 icon?: import("../icons/Icon").IconNode;
24 iconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
25 iconRight?: boolean;
26 linearGradientProps?: object;
27 TouchableComponent?: typeof React.Component;
28 ViewComponent?: typeof React.Component;
29 disabled?: boolean;
30 disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
31 disabledTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
32 raised?: boolean;
33 iconPosition?: "bottom" | "left" | "right" | "top";
34} & {
35 color?: string;
36 size?: "small" | "large";
37 placement?: "left" | "right";
38 visible?: boolean;
39 upperCase?: boolean;
40} & Partial<import("../config").ThemeProps<FABProps>>, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "visible" | "raised" | "disabled" | "color" | "size" | "onPress" | "onLongPress" | "activeOpacity" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "hitSlop" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "hasTVPreferredFocus" | "tvParallaxProperties" | "touchSoundDisabled" | "background" | "useForeground" | "type" | "containerStyle" | "disabledStyle" | "title" | "icon" | "titleStyle" | "loading" | "titleProps" | "buttonStyle" | "loadingStyle" | "loadingProps" | "iconContainerStyle" | "iconRight" | "linearGradientProps" | "TouchableComponent" | "ViewComponent" | "disabledTitleStyle" | "iconPosition" | "placement" | "upperCase">> | React.ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & import("react-native").TouchableNativeFeedbackProps & {
41 title?: string | React.ReactElement<{}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
42 titleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
43 titleProps?: import("..").TextProps;
44 buttonStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
45 type?: "solid" | "clear" | "outline";
46 loading?: boolean;
47 loadingStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
48 loadingProps?: import("react-native").ActivityIndicatorProps;
49 containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
50 icon?: import("../icons/Icon").IconNode;
51 iconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
52 iconRight?: boolean;
53 linearGradientProps?: object;
54 TouchableComponent?: typeof React.Component;
55 ViewComponent?: typeof React.Component;
56 disabled?: boolean;
57 disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
58 disabledTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
59 raised?: boolean;
60 iconPosition?: "bottom" | "left" | "right" | "top";
61} & {
62 color?: string;
63 size?: "small" | "large";
64 placement?: "left" | "right";
65 visible?: boolean;
66 upperCase?: boolean;
67} & Partial<import("../config").ThemeProps<FABProps>>>;
68export default _default;
69
\No newline at end of file