@uiw/react-native
Version:
UIW for React Native
29 lines (28 loc) • 688 B
TypeScript
/// <reference types="react" />
import { ViewProps, ImageProps } from 'react-native';
export interface AvatarProps extends ViewProps {
/** React Native `Image` 组件 Props */
imageProps?: ImageProps;
/** 图像源(远程URL或本地文件资源)。 */
src?: string | number;
/**
* 尺寸
* @default 40
*/
size?: number;
/**
* 设置圆角
* @default 3
*/
rounded?: number;
/**
* 指定头像的形状
* @default square
*/
shape?: 'circle' | 'square';
}
declare function Avatar(props: AvatarProps): JSX.Element;
declare namespace Avatar {
var defaultProps: AvatarProps;
}
export default Avatar;