UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

25 lines (24 loc) 731 B
import React from 'react'; import { ImageStyle, StyleProp } from 'react-native'; import { TabBarIcon } from './PropsType'; import TabBarItemStyles from './style'; export interface TabBarItemProps { badge?: string | number; onPress?: () => void; selected?: boolean; icon?: TabBarIcon; selectedIcon?: TabBarIcon; title: string; tintColor?: string; unselectedTintColor?: string; iconStyle?: StyleProp<ImageStyle>; renderAsOriginal?: boolean; styles?: ReturnType<typeof TabBarItemStyles>; children?: React.ReactNode; } export default class TabBarItem extends React.Component<TabBarItemProps, any> { static defaultProps: { onPress(): void; }; render(): JSX.Element; }