UNPKG

1.72 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.ComponentClass<Pick<Props, "source" | "color" | "size" | "allowFontScaling"> & {
25 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
26}, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & (({ source, color, size, theme, ...rest }: Props) => any)) | (React.FunctionComponent<Props> & (({ source, color, size, theme, ...rest }: Props) => any)), {}>) | (React.FunctionComponent<Pick<Props, "source" | "color" | "size" | "allowFontScaling"> & {
27 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
28}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & (({ source, color, size, theme, ...rest }: Props) => any)) | (React.FunctionComponent<Props> & (({ source, color, size, theme, ...rest }: Props) => any)), {}>);
29export default _default;
30
\No newline at end of file