1 | import React, { ComponentClass } from "react";
|
2 | import { TextProps, TouchableHighlightProps, ViewProps } from "react-native";
|
3 | export { DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE } from "./vendor/react-native-vector-icons/lib/create-icon-set";
|
4 | export interface IconButtonProps<GLYPHS extends string> extends ViewProps, TouchableHighlightProps {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 | size?: number;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | name: GLYPHS;
|
18 | |
19 |
|
20 |
|
21 |
|
22 | color?: string;
|
23 | }
|
24 | export interface IconProps<GLYPHS extends string> extends TextProps {
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | size?: number;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | name: GLYPHS;
|
38 | |
39 |
|
40 |
|
41 |
|
42 | color?: string;
|
43 | }
|
44 | export declare type GlyphMap<G extends string> = {
|
45 | [K in G]: number;
|
46 | };
|
47 | export interface Icon<G extends string, FN extends string> {
|
48 | propTypes: any;
|
49 | defaultProps: any;
|
50 | Button: ComponentClass<IconButtonProps<G>>;
|
51 | glyphMap: GlyphMap<G>;
|
52 | getRawGlyphMap: () => GlyphMap<G>;
|
53 | getFontFamily: () => FN;
|
54 | loadFont: () => Promise<void>;
|
55 | font: {
|
56 | [x: string]: any;
|
57 | };
|
58 | new (props: IconProps<G>): React.Component<IconProps<G>>;
|
59 | }
|
60 | export default function <G extends string, FN extends string>(glyphMap: GlyphMap<G>, fontName: FN, expoAssetId: any, fontStyle?: any): Icon<G, FN>;
|