You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

import React from 'react';
import { StyleProp, ViewStyle, TextStyle, ImageSourcePropType, ImageStyle } from 'react-native';
import { InlinePressableProps, RneFunctionComponent } from '../helpers';
import { IconObject } from '../Icon';
import { ImageProps } from '../Image';
export declare const avatarSizes: {
small: number;
medium: number;
large: number;
xlarge: number;
};
declare type AvatarIcon = IconObject & {
iconStyle?: StyleProp<TextStyle>;
};
export interface AvatarProps extends InlinePressableProps {
Component?: typeof React.Component;
onPress?(): void;
onLongPress?(): void;
containerStyle?: StyleProp<ViewStyle>;
source?: ImageSourcePropType;
avatarStyle?: ImageStyle;
rounded?: boolean;
title?: string;
titleStyle?: StyleProp<TextStyle>;
overlayContainerStyle?: StyleProp<TextStyle>;
icon?: AvatarIcon;
iconStyle?: StyleProp<TextStyle>;
size?: ('small' | 'medium' | 'large' | 'xlarge') | number;
placeholderStyle?: StyleProp<ViewStyle>;
renderPlaceholderContent?: React.ReactElement<{}>;
imageProps?: Partial<ImageProps>;
ImageComponent?: React.ComponentClass;
}
export declare const Avatar: RneFunctionComponent<AvatarProps>;
export {};