@uiw/react-native
Version:
UIW for React Native
28 lines (27 loc) • 810 B
TypeScript
import React from 'react';
import { ViewProps } from 'react-native';
import { IconsName } from '../Icon';
export interface TimelineItemsProps {
/** 标题 */
title: string;
/** 子标题 */
tips?: string;
/** 子项内容 */
desc?: string | string[];
/** 自定义图标 */
icon?: IconsName | React.ReactElement | React.ReactNode;
/** 自定义图标颜色 */
color?: string;
/** 自定义图标尺寸 */
size?: number;
}
export interface TimelineProps extends ViewProps {
/** 是否倒序 */
isReverse?: boolean;
/** 步骤条数据列表 */
items: TimelineItemsProps[];
/** 改变时间轴和内容的相对位置 */
mode?: 'left' | 'alternate';
}
declare const TimeLine: (props: TimelineProps) => JSX.Element;
export default TimeLine;