@uiw/react-native
Version:
UIW for React Native
25 lines (24 loc) • 524 B
TypeScript
import React from 'react';
import { ViewProps, ImageProps } from 'react-native';
export interface AvatarProps extends ViewProps {
imageProps?: ImageProps;
src?: string | number;
/**
* 尺寸
* @default 40
*/
size?: number;
/**
* 设置圆角
* @default 3
*/
rounded?: number;
/**
* 指定头像的形状
* @default square
*/
shape?: 'circle' | 'square';
loading?: boolean;
}
declare const Avatar: React.FC<AvatarProps>;
export default Avatar;