1 | import * as React from 'react';
|
2 | import { ImageSourcePropType } from 'react-native';
|
3 | import type { ThemeProp } from '../types';
|
4 | type IconSourceBase = string | ImageSourcePropType;
|
5 | export type IconSource = IconSourceBase | Readonly<{
|
6 | source: IconSourceBase;
|
7 | direction: 'rtl' | 'ltr' | 'auto';
|
8 | }> | ((props: IconProps & {
|
9 | color: string;
|
10 | }) => React.ReactNode);
|
11 | type IconProps = {
|
12 | |
13 |
|
14 |
|
15 | size: number;
|
16 | allowFontScaling?: boolean;
|
17 | };
|
18 | export declare const isValidIcon: (source: any) => boolean;
|
19 | export declare const isEqualIcon: (a: any, b: any) => boolean;
|
20 | export type Props = IconProps & {
|
21 | |
22 |
|
23 |
|
24 | source: any;
|
25 | |
26 |
|
27 |
|
28 | color?: string;
|
29 | |
30 |
|
31 |
|
32 | testID?: string;
|
33 | |
34 |
|
35 |
|
36 | theme?: ThemeProp;
|
37 | };
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | declare const Icon: ({ source, color, size, theme: themeOverrides, testID, ...rest }: Props) => any;
|
58 | export default Icon;
|
59 |
|
\ | No newline at end of file |