mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
942 B
TypeScript
30 lines
942 B
TypeScript
// Type definitions for react-navigation-material-bottom-tabs 0.3
|
|
// Project: https://github.com/react-navigation/react-navigation-material-bottom-tabs
|
|
// Definitions by: Kyle Roach <https://github.com/iRoachie>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
import {
|
|
NavigationContainer,
|
|
NavigationPathsConfig,
|
|
NavigationRouteConfigMap
|
|
} from 'react-navigation';
|
|
|
|
export interface TabConfig {
|
|
shifting?: boolean;
|
|
labeled?: boolean;
|
|
activeTintColor?: string;
|
|
inactiveTintColor?: string;
|
|
barStyle?: StyleProp<ViewStyle>;
|
|
initialRouteName?: string;
|
|
order?: string[];
|
|
paths?: NavigationPathsConfig;
|
|
backBehavior?: 'initialRoute' | 'none';
|
|
}
|
|
|
|
export function createMaterialBottomTabNavigator(
|
|
routeConfigMap: NavigationRouteConfigMap,
|
|
config?: TabConfig
|
|
): NavigationContainer;
|