UNPKG

2.13 kBTypeScriptView Raw
1import React from 'react';
2import { ViewStyle, StyleProp, TextStyle, TouchableHighlightProps } from 'react-native';
3import { IconButtonProps, IconProps as VectorIconProps } from 'react-native-vector-icons/Icon';
4import { RneFunctionComponent } from '../helpers';
5export declare type IconType = 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo' | 'antdesign' | 'font-awesome-5' | string;
6export interface IconObject extends TouchableHighlightProps {
7 name?: string;
8 color?: string;
9 size?: number;
10 type?: IconType;
11 iconStyle?: StyleProp<TextStyle>;
12}
13export declare type IconNode = boolean | React.ReactElement<{}> | Partial<IconProps>;
14export declare type IconProps = IconButtonProps & {
15 type?: IconType;
16 Component?: typeof React.Component;
17 reverse?: boolean;
18 raised?: boolean;
19 containerStyle?: StyleProp<ViewStyle>;
20 iconProps?: VectorIconProps;
21 reverseColor?: string;
22 disabled?: boolean;
23 disabledStyle?: StyleProp<ViewStyle>;
24 solid?: boolean;
25 brand?: boolean;
26};
27declare const Icon: RneFunctionComponent<IconProps>;
28export { Icon };
29declare const _default: React.FunctionComponent<Omit<IconButtonProps & {
30 type?: string;
31 Component?: typeof React.Component;
32 reverse?: boolean;
33 raised?: boolean;
34 containerStyle?: StyleProp<ViewStyle>;
35 iconProps?: VectorIconProps;
36 reverseColor?: string;
37 disabled?: boolean;
38 disabledStyle?: StyleProp<ViewStyle>;
39 solid?: boolean;
40 brand?: boolean;
41} & Partial<import("../config").ThemeProps<IconProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<IconButtonProps & {
42 type?: string;
43 Component?: typeof React.Component;
44 reverse?: boolean;
45 raised?: boolean;
46 containerStyle?: StyleProp<ViewStyle>;
47 iconProps?: VectorIconProps;
48 reverseColor?: string;
49 disabled?: boolean;
50 disabledStyle?: StyleProp<ViewStyle>;
51 solid?: boolean;
52 brand?: boolean;
53} & Partial<import("../config").ThemeProps<IconProps>>>;
54export default _default;