UNPKG

1.36 kBTypeScriptView Raw
1import * as React from 'react';
2import { ImageSourcePropType } from 'react-native';
3declare type IconSourceBase = string | ImageSourcePropType;
4export declare type IconSource = IconSourceBase | Readonly<{
5 source: IconSourceBase;
6 direction: 'rtl' | 'ltr' | 'auto';
7}> | ((props: IconProps & {
8 color: string;
9}) => React.ReactNode);
10declare type IconProps = {
11 size: number;
12 allowFontScaling?: boolean;
13};
14declare type Props = IconProps & {
15 color?: string;
16 source: any;
17 /**
18 * @optional
19 */
20 theme: ReactNativePaper.Theme;
21};
22export declare const isValidIcon: (source: any) => boolean;
23export declare const isEqualIcon: (a: any, b: any) => boolean;
24declare const _default: React.ComponentType<Pick<IconProps & {
25 color?: string | undefined;
26 source: any;
27 /**
28 * @optional
29 */
30 theme: ReactNativePaper.Theme;
31}, "source" | "color" | keyof IconProps> & {
32 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
33}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<IconProps & {
34 color?: string | undefined;
35 source: any;
36 /**
37 * @optional
38 */
39 theme: ReactNativePaper.Theme;
40}> & (({ source, color, size, theme, ...rest }: Props) => any), {}>;
41export default _default;
42
\No newline at end of file