UNPKG

@uiw/react-native

Version:
41 lines (40 loc) 1.57 kB
import React, { FC } from 'react'; import { StyleProp, ViewStyle, TextStyle, TouchableOpacityProps, TouchableNativeFeedbackProps, ImageProps, ImageSourcePropType } from 'react-native'; import { IconsProps } from '../Icon'; import TransitionImage from '../TransitionImage'; export interface TileProps extends 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?: typeof TransitionImage; } declare const Tile: FC<TileProps>; export default Tile;