antd-mobile-rn
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
22 lines (21 loc) • 709 B
TypeScript
import React from 'react';
import { ImageRequireSource, ImageStyle, ImageURISource, StyleProp } from 'react-native';
export interface TabBarItemProps {
badge?: string | number;
onPress?: () => void;
selected?: boolean;
icon?: ImageURISource | ImageURISource[] | ImageRequireSource;
selectedIcon?: ImageURISource | ImageURISource[] | ImageRequireSource;
title: string;
tintColor?: string;
unselectedTintColor?: string;
iconStyle?: StyleProp<ImageStyle>;
renderAsOriginal?: boolean;
styles?: any;
}
export default class TabBarItem extends React.Component<TabBarItemProps, any> {
static defaultProps: {
onPress(): void;
};
render(): JSX.Element;
}