1 | import React from 'react';
|
2 | import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
3 | import { ButtonProps } from '../buttons/Button';
|
4 | import { RneFunctionComponent } from '../helpers';
|
5 | export declare type TabItemProps = ButtonProps & {
|
6 | active?: boolean;
|
7 | variant?: 'primary' | 'default';
|
8 | };
|
9 | declare const TabItem: RneFunctionComponent<TabItemProps>;
|
10 | export declare type TabProps = ViewProps & {
|
11 | value?: number;
|
12 | onChange?: (value: number) => void;
|
13 | disableIndicator?: boolean;
|
14 | indicatorStyle?: StyleProp<ViewStyle>;
|
15 | variant?: 'primary' | 'default';
|
16 | };
|
17 | interface Tab extends RneFunctionComponent<TabProps> {
|
18 | Item: typeof TabItem;
|
19 | }
|
20 | declare const Tab: Tab;
|
21 | export { Tab };
|
22 | declare const _default: (React.FunctionComponent<Omit<ViewProps & {
|
23 | value?: number;
|
24 | onChange?: (value: number) => void;
|
25 | disableIndicator?: boolean;
|
26 | indicatorStyle?: StyleProp<ViewStyle>;
|
27 | variant?: "default" | "primary";
|
28 | } & Partial<import("../config").ThemeProps<TabProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<ViewProps & {
|
29 | value?: number;
|
30 | onChange?: (value: number) => void;
|
31 | disableIndicator?: boolean;
|
32 | indicatorStyle?: StyleProp<ViewStyle>;
|
33 | variant?: "default" | "primary";
|
34 | } & Partial<import("../config").ThemeProps<TabProps>>>) & {
|
35 | Item: React.FunctionComponent<Omit<import("react-native").TouchableOpacityProps & import("react-native").TouchableNativeFeedbackProps & {
|
36 | title?: string | React.ReactElement<{}, string | React.JSXElementConstructor<any>>;
|
37 | titleStyle?: StyleProp<import("react-native").TextStyle>;
|
38 | titleProps?: import("..").TextProps;
|
39 | buttonStyle?: StyleProp<ViewStyle>;
|
40 | type?: "solid" | "clear" | "outline";
|
41 | loading?: boolean;
|
42 | loadingStyle?: StyleProp<ViewStyle>;
|
43 | loadingProps?: import("react-native").ActivityIndicatorProps;
|
44 | containerStyle?: StyleProp<ViewStyle>;
|
45 | icon?: import("../icons/Icon").IconNode;
|
46 | iconContainerStyle?: StyleProp<ViewStyle>;
|
47 | iconRight?: boolean;
|
48 | linearGradientProps?: object;
|
49 | TouchableComponent?: typeof React.Component;
|
50 | ViewComponent?: typeof React.Component;
|
51 | disabled?: boolean;
|
52 | disabledStyle?: StyleProp<ViewStyle>;
|
53 | disabledTitleStyle?: StyleProp<import("react-native").TextStyle>;
|
54 | raised?: boolean;
|
55 | iconPosition?: "bottom" | "left" | "right" | "top";
|
56 | } & {
|
57 | active?: boolean;
|
58 | variant?: "default" | "primary";
|
59 | } & Partial<import("../config").ThemeProps<TabItemProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & import("react-native").TouchableNativeFeedbackProps & {
|
60 | title?: string | React.ReactElement<{}, string | React.JSXElementConstructor<any>>;
|
61 | titleStyle?: StyleProp<import("react-native").TextStyle>;
|
62 | titleProps?: import("..").TextProps;
|
63 | buttonStyle?: StyleProp<ViewStyle>;
|
64 | type?: "solid" | "clear" | "outline";
|
65 | loading?: boolean;
|
66 | loadingStyle?: StyleProp<ViewStyle>;
|
67 | loadingProps?: import("react-native").ActivityIndicatorProps;
|
68 | containerStyle?: StyleProp<ViewStyle>;
|
69 | icon?: import("../icons/Icon").IconNode;
|
70 | iconContainerStyle?: StyleProp<ViewStyle>;
|
71 | iconRight?: boolean;
|
72 | linearGradientProps?: object;
|
73 | TouchableComponent?: typeof React.Component;
|
74 | ViewComponent?: typeof React.Component;
|
75 | disabled?: boolean;
|
76 | disabledStyle?: StyleProp<ViewStyle>;
|
77 | disabledTitleStyle?: StyleProp<import("react-native").TextStyle>;
|
78 | raised?: boolean;
|
79 | iconPosition?: "bottom" | "left" | "right" | "top";
|
80 | } & {
|
81 | active?: boolean;
|
82 | variant?: "default" | "primary";
|
83 | } & Partial<import("../config").ThemeProps<TabItemProps>>>;
|
84 | };
|
85 | export default _default;
|