@uiw/react-native
Version:
UIW for React Native
40 lines (39 loc) • 1.75 kB
TypeScript
import React from 'react';
import { StyleProp, ViewStyle, TextStyle, TouchableOpacityProps, TouchableNativeFeedbackProps, ImageProps, ImageSourcePropType } from 'react-native';
import { IconsProps } from '../Icon';
export declare type TileProps = TouchableOpacityProps & TouchableNativeFeedbackProps & {
/** 标题内容(可选)*/
title?: string;
/** 标题样式 */
titleStyle?: StyleProp<TextStyle>;
/** 图标(可选)*/
icon?: IconsProps;
/** 图标样式(可选) */
iconContainerStyle?: StyleProp<ViewStyle>;
/** 文本内容(可选) */
caption?: React.ReactNode;
/** 文本内容样式(可选) */
captionStyle?: StyleProp<TextStyle>;
/** 底部容器样式(可选) */
contentContainerStyle?: StyleProp<ViewStyle>;
/** 图片链接(可选) */
imageSrc?: ImageSourcePropType | string | number;
/** 图片容器样式(可选) */
imageContainerStyle?: StyleProp<ViewStyle>;
/** 文字行数(可选) */
titleNumberOfLines?: number;
/** Tile样式(可选) */
containerStyle?: StyleProp<ViewStyle>;
/** Tile宽度(可选) */
width?: number;
/** Tile高度(可选)*/
height?: number;
/** Tile透明度(可选)*/
activeOpacity?: number;
/** 继承image的api */
imageProps?: Partial<ImageProps>;
/** Custom ImageComponent for Tile. */
ImageComponent?: Function;
};
declare const Tile: ({ imageSrc, icon, title, onPress, caption, activeOpacity, captionStyle, containerStyle, titleStyle, iconContainerStyle, contentContainerStyle, imageContainerStyle, titleNumberOfLines, imageProps, width, height, ImageComponent, ...attributes }: TileProps) => JSX.Element;
export default Tile;