UNPKG

react-native-paper

Version:
42 lines (41 loc) 1.36 kB
import * as React from 'react'; import { ImageSourcePropType } from 'react-native'; declare type IconSourceBase = string | ImageSourcePropType; export declare type IconSource = IconSourceBase | Readonly<{ source: IconSourceBase; direction: 'rtl' | 'ltr' | 'auto'; }> | ((props: IconProps & { color: string; }) => React.ReactNode); declare type IconProps = { size: number; allowFontScaling?: boolean; }; declare type Props = IconProps & { color?: string; source: any; /** * @optional */ theme: ReactNativePaper.Theme; }; export declare const isValidIcon: (source: any) => boolean; export declare const isEqualIcon: (a: any, b: any) => boolean; declare const _default: React.ComponentType<Pick<IconProps & { color?: string | undefined; source: any; /** * @optional */ theme: ReactNativePaper.Theme; }, "source" | "color" | keyof IconProps> & { theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<IconProps & { color?: string | undefined; source: any; /** * @optional */ theme: ReactNativePaper.Theme; }> & (({ source, color, size, theme, ...rest }: Props) => any), {}>; export default _default;