You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1 KiB

import React from 'react';
import { ViewStyle, StyleProp, TextStyle } from 'react-native';
import { IconButtonProps, IconProps as VectorIconProps } from 'react-native-vector-icons/Icon';
import { InlinePressableProps, RneFunctionComponent } from '../helpers';
export declare type IconType = 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo' | 'antdesign' | 'font-awesome-5' | string;
export interface IconObject {
name?: string;
color?: string;
size?: number;
type?: IconType;
iconStyle?: StyleProp<TextStyle>;
}
export declare type IconNode = boolean | React.ReactElement<{}> | Partial<IconProps>;
export interface IconProps extends InlinePressableProps, IconButtonProps {
type?: IconType;
Component?: typeof React.Component;
reverse?: boolean;
raised?: boolean;
containerStyle?: StyleProp<ViewStyle>;
iconProps?: VectorIconProps;
reverseColor?: string;
disabled?: boolean;
disabledStyle?: StyleProp<ViewStyle>;
solid?: boolean;
brand?: boolean;
}
export declare const Icon: RneFunctionComponent<IconProps>;