UNPKG

2.03 kBTypeScriptView Raw
1import React from 'react';
2export { DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE } from './vendor/react-native-vector-icons/lib/create-icon-set';
3export default function (glyphMap: any, fontName: any, expoAssetId: any, fontStyle?: any): {
4 new (props: Readonly<{}>): {
5 _mounted: boolean;
6 _icon?: any;
7 state: {
8 fontIsLoaded: boolean;
9 };
10 componentWillMount(): Promise<void>;
11 componentWillUnmount(): void;
12 setNativeProps(props: any): void;
13 render(): JSX.Element;
14 context: any;
15 setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
16 forceUpdate(callBack?: (() => void) | undefined): void;
17 readonly props: Readonly<{}> & Readonly<{
18 children?: React.ReactNode;
19 }>;
20 refs: {
21 [key: string]: React.ReactInstance;
22 };
23 };
24 new (props: {}, context?: any): {
25 _mounted: boolean;
26 _icon?: any;
27 state: {
28 fontIsLoaded: boolean;
29 };
30 componentWillMount(): Promise<void>;
31 componentWillUnmount(): void;
32 setNativeProps(props: any): void;
33 render(): JSX.Element;
34 context: any;
35 setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36 forceUpdate(callBack?: (() => void) | undefined): void;
37 readonly props: Readonly<{}> & Readonly<{
38 children?: React.ReactNode;
39 }>;
40 refs: {
41 [key: string]: React.ReactInstance;
42 };
43 };
44 propTypes: any;
45 defaultProps: any;
46 Button: any;
47 glyphMap: any;
48 getRawGlyphMap: () => any;
49 getFontFamily: () => any;
50 loadFont: () => Promise<void>;
51 font: {
52 [x: number]: any;
53 };
54 contextType?: React.Context<any> | undefined;
55};