@uiw/react-native
Version:
UIW for React Native
30 lines (29 loc) • 745 B
TypeScript
import React, { Component } from 'react';
import { TextProps } from 'react-native';
import { FlexProps } from '../Flex';
export interface EmptyProps extends FlexProps {
/**
* 设置提示文本
*/
label?: string;
/**
* 设置提示音样式
*/
labelStyle?: TextProps['style'];
/**
* 设置 图标尺寸
*/
size?: number;
/**
* 传递 SVG xml 字符串,自定义图标,设为 `null` 将不展示图标。
*/
xml?: string;
/**
* 不光提示文本,还有更多内容,`label` 将不起作用
*/
children?: React.ReactNode;
}
export default class Empty extends Component<EmptyProps> {
static defaultProps: EmptyProps;
render(): JSX.Element;
}