/** * Created by nghinv on Fri Jun 18 2021 * Copyright (c) 2021 nghinv@lumi.biz */ import React from 'react'; import { TouchableOpacityProps, StyleProp, ViewStyle, TextStyle } from 'react-native'; import { ImageStyle, FastImageProps, Source } from 'react-native-fast-image'; import { BadgeProps, BadgeSizes, BADGE_SIZES } from '@nghinv/react-native-badge'; export declare enum StatusModes { online = "online", offline = "offline", away = "away", none = "none" } export declare enum BadgePosition { topLeft = "topLeft", topRight = "topRight", bottomLeft = "bottomLeft", bottomRight = "bottomRight" } export declare type BadgePositionType = keyof typeof BadgePosition; export declare type StatusModesType = keyof typeof StatusModes; export interface AvatarProps { size?: number; source?: Source | number; backgroundColor?: string; imageStyle?: StyleProp; imageProps?: Omit; borderRadius?: number; containerStyle?: StyleProp; containerProps?: TouchableOpacityProps; onPress?: () => void; label?: string; labelColor?: string; labelStyle?: TextStyle; showBadge?: boolean; badgeSize?: BadgeSizes | number; badgePosition?: BadgePositionType; badgeProps?: BadgeProps; status?: StatusModesType; disabled?: boolean; statusModesColor?: { online: string; offline: string; away: string; none?: string; }; } declare function Avatar(props: AvatarProps): JSX.Element; declare namespace Avatar { var defaultProps: { size: number; backgroundColor: string; labelColor: string; showBadge: boolean; badgeSize: BADGE_SIZES; status: StatusModes; badgePosition: BadgePosition; statusModesColor: { online: string; offline: string; away: string; }; }; } declare const _default: React.MemoExoticComponent; export default _default;