@uiw/react-native
Version:
UIW for React Native
28 lines (27 loc) • 674 B
TypeScript
import { Component } from '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';
}
export default class Avatar extends Component<AvatarProps> {
static defaultProps: AvatarProps;
render(): JSX.Element;
}