UNPKG

@td-design/react-native

Version:

react-native UI组件库

47 lines 1.33 kB
import { PropsWithChildren, ReactElement } from 'react'; import { TextStyle, ViewStyle } from 'react-native'; export interface AccessoryProps { /** 图标大小 */ size?: number; /** 使用图片时的值 */ url?: string | number; /** 使用自定义组件 */ component?: ReactElement; /** 挂件垂直方向位置 */ top?: boolean; /** 挂件水平方向位置 */ left?: boolean; } export type AvatarGroupProps = PropsWithChildren<{ /** 最大显示数量 */ max?: number; /** 头像的间距 */ spacing?: number; /** 数量的背景 */ backgroundColor?: string; /** 数量的文字的样式 */ textStyle?: TextStyle; }>; export type AvatarProps = { /** 点击头像 */ onPress?: () => void; /** 点击时的透明度 */ activeOpacity?: number; /** 头像大小 */ size?: number; /** 图片地址 */ url?: string | number; /** 头像弧度 */ borderRadius?: number; /** 标题显示在头像中的文字不能与url一起用 */ title?: string; /** 是否为圆形 */ circular?: boolean; /** title时的背景 */ backgroundColor?: string; /** title文字的样式 */ textStyle?: TextStyle; /** 容器的样式 */ containerStyle?: ViewStyle; }; //# sourceMappingURL=type.d.ts.map