UNPKG

2.26 kBTypeScriptView Raw
1import * as React from 'react';
2import { View, ViewStyle, StyleProp, TextStyle } from 'react-native';
3declare type Props = React.ComponentPropsWithRef<typeof View> & {
4 /**
5 * Initials to show as the text in the `Avatar`.
6 */
7 label: string;
8 /**
9 * Size of the avatar.
10 */
11 size?: number;
12 /**
13 * Custom color for the text.
14 */
15 color?: string;
16 /**
17 * Style for text container
18 */
19 style?: StyleProp<ViewStyle>;
20 /**
21 * Style for the title.
22 */
23 labelStyle?: StyleProp<TextStyle>;
24 /**
25 * @optional
26 */
27 theme: ReactNativePaper.Theme;
28};
29declare const _default: React.ComponentType<Pick<import("react-native").ViewProps & React.RefAttributes<View> & {
30 /**
31 * Initials to show as the text in the `Avatar`.
32 */
33 label: string;
34 /**
35 * Size of the avatar.
36 */
37 size?: number | undefined;
38 /**
39 * Custom color for the text.
40 */
41 color?: string | undefined;
42 /**
43 * Style for text container
44 */
45 style?: StyleProp<ViewStyle>;
46 /**
47 * Style for the title.
48 */
49 labelStyle?: StyleProp<TextStyle>;
50 /**
51 * @optional
52 */
53 theme: ReactNativePaper.Theme;
54}, "label" | "color" | "size" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View> | "labelStyle"> & {
55 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
56}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").ViewProps & React.RefAttributes<View> & {
57 /**
58 * Initials to show as the text in the `Avatar`.
59 */
60 label: string;
61 /**
62 * Size of the avatar.
63 */
64 size?: number | undefined;
65 /**
66 * Custom color for the text.
67 */
68 color?: string | undefined;
69 /**
70 * Style for text container
71 */
72 style?: StyleProp<ViewStyle>;
73 /**
74 * Style for the title.
75 */
76 labelStyle?: StyleProp<TextStyle>;
77 /**
78 * @optional
79 */
80 theme: ReactNativePaper.Theme;
81}> & {
82 ({ label, size, style, theme, labelStyle, color: customColor, ...rest }: Props): JSX.Element;
83 displayName: string;
84}, {}>;
85export default _default;