UNPKG

1.82 kBTypeScriptView Raw
1import * as React from 'react';
2import { View, ViewStyle, StyleProp } from 'react-native';
3import { IconSource } from '../Icon';
4declare type Props = React.ComponentPropsWithRef<typeof View> & {
5 /**
6 * Icon to display for the `Avatar`.
7 */
8 icon: IconSource;
9 /**
10 * Size of the avatar.
11 */
12 size?: number;
13 /**
14 * Custom color for the icon.
15 */
16 color?: string;
17 style?: StyleProp<ViewStyle>;
18 /**
19 * @optional
20 */
21 theme: ReactNativePaper.Theme;
22};
23declare const _default: React.ComponentType<Pick<import("react-native").ViewProps & React.RefAttributes<View> & {
24 /**
25 * Icon to display for the `Avatar`.
26 */
27 icon: IconSource;
28 /**
29 * Size of the avatar.
30 */
31 size?: number | undefined;
32 /**
33 * Custom color for the icon.
34 */
35 color?: string | undefined;
36 style?: StyleProp<ViewStyle>;
37 /**
38 * @optional
39 */
40 theme: ReactNativePaper.Theme;
41}, "color" | "size" | "icon" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View>> & {
42 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
43}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").ViewProps & React.RefAttributes<View> & {
44 /**
45 * Icon to display for the `Avatar`.
46 */
47 icon: IconSource;
48 /**
49 * Size of the avatar.
50 */
51 size?: number | undefined;
52 /**
53 * Custom color for the icon.
54 */
55 color?: string | undefined;
56 style?: StyleProp<ViewStyle>;
57 /**
58 * @optional
59 */
60 theme: ReactNativePaper.Theme;
61}> & {
62 ({ icon, size, style, theme, ...rest }: Props): JSX.Element;
63 displayName: string;
64}, {}>;
65export default _default;