UNPKG

746 BTypeScriptView Raw
1import * as React from 'react';
2import { NavigationRoute } from 'react-navigation';
3import { MaterialTabBarProps } from '../types';
4declare type Scene = {
5 route: NavigationRoute;
6 focused: boolean;
7 color: string;
8};
9export default class TabBarTop extends React.PureComponent<MaterialTabBarProps> {
10 static defaultProps: {
11 activeTintColor: string;
12 inactiveTintColor: string;
13 showIcon: boolean;
14 showLabel: boolean;
15 upperCaseLabel: boolean;
16 allowFontScaling: boolean;
17 };
18 _renderLabel: ({ route, focused, color }: Scene) => string | JSX.Element | null | undefined;
19 _renderIcon: ({ route, focused, color }: Scene) => JSX.Element | null;
20 render(): JSX.Element;
21}
22export {};