1 | import React from 'react';
|
2 | import { ViewStyle, StyleProp, TextStyle, TouchableHighlightProps } from 'react-native';
|
3 | import { IconButtonProps, IconProps as VectorIconProps } from 'react-native-vector-icons/Icon';
|
4 | import { RneFunctionComponent } from '../helpers';
|
5 | export declare type IconType = 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo' | 'antdesign' | 'font-awesome-5' | string;
|
6 | export interface IconObject extends TouchableHighlightProps {
|
7 | name?: string;
|
8 | color?: string;
|
9 | size?: number;
|
10 | type?: IconType;
|
11 | iconStyle?: StyleProp<TextStyle>;
|
12 | }
|
13 | export declare type IconNode = boolean | React.ReactElement<{}> | Partial<IconProps>;
|
14 | export 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 | };
|
27 | declare const Icon: RneFunctionComponent<IconProps>;
|
28 | export { Icon };
|
29 | declare const _default: React.FunctionComponent<Pick<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>>, "style" | "onLayout" | "borderRadius" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "raised" | "disabled" | "color" | "iconStyle" | "backgroundColor" | "size" | "name" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "onPress" | "onLongPress" | "nativeID" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "activeOpacity" | "onHideUnderlay" | "onShowUnderlay" | "underlayColor" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "hitSlop" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset" | "hasTVPreferredFocus" | "tvParallaxProperties" | "touchSoundDisabled" | "background" | "useForeground" | "type" | "Component" | "reverse" | "containerStyle" | "iconProps" | "reverseColor" | "disabledStyle" | "solid" | "brand">> | 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>>>;
|
54 | export default _default;
|