import React, { ComponentClass } from "react"; import { TextProps, TouchableHighlightProps, ViewProps } from "react-native"; export { DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE } from "./vendor/react-native-vector-icons/lib/create-icon-set"; export interface IconButtonProps extends ViewProps, TouchableHighlightProps { /** * Size of the icon, can also be passed as fontSize in the style object. * * @default 12 */ size?: number; /** * Name of the icon to show * * See Icon Explorer app * {@link https://expo.github.io/vector-icons/} */ name: GLYPHS; /** * Color of the icon * */ color?: string; } export interface IconProps extends TextProps { /** * Size of the icon, can also be passed as fontSize in the style object. * * @default 12 */ size?: number; /** * Name of the icon to show * * See Icon Explorer app * {@link https://expo.github.io/vector-icons/} */ name: GLYPHS; /** * Color of the icon * */ color?: string; } export declare type GlyphMap = { [K in G]: number; }; export interface Icon { propTypes: any; defaultProps: any; Button: ComponentClass>; glyphMap: GlyphMap; getRawGlyphMap: () => GlyphMap; getFontFamily: () => FN; loadFont: () => Promise; font: { [x: string]: any; }; new (props: IconProps): React.Component>; } export default function (glyphMap: GlyphMap, fontName: FN, expoAssetId: any, fontStyle?: any): Icon;