UNPKG

1.67 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, ViewStyle } from 'react-native';
3import { TabView } from 'react-native-tab-view';
4import { NavigationTabProp, NavigationMaterialTabOptions, MaterialTabBarOptions } from '../types';
5declare type Route = {
6 key: string;
7 routeName: string;
8};
9declare type Config = {
10 keyboardDismissMode?: 'none' | 'on-drag';
11 swipeEnabled?: boolean;
12 swipeDistanceThreshold?: number;
13 swipeVelocityThreshold?: number;
14 initialLayout?: {
15 width?: number;
16 height?: number;
17 };
18 lazy?: boolean;
19 lazyPlaceholderComponent?: React.ComponentType<{
20 route: Route;
21 }>;
22 pagerComponent?: React.ComponentType<Parameters<React.ComponentProps<typeof TabView>['renderPager']>[0]>;
23 tabBarComponent?: React.ComponentType<any>;
24 tabBarOptions?: MaterialTabBarOptions;
25 tabBarPosition?: 'top' | 'bottom';
26 sceneContainerStyle?: StyleProp<ViewStyle>;
27 style?: StyleProp<ViewStyle>;
28};
29declare const _default: (routes: import("react-navigation").NavigationRouteConfigMap<NavigationMaterialTabOptions, NavigationTabProp<import("react-navigation").NavigationRoute<import("react-navigation").NavigationParams>, any>, unknown>, config?: import("react-navigation").CreateNavigatorConfig<Partial<Config>, import("react-navigation").NavigationTabRouterConfig, Partial<NavigationMaterialTabOptions>, NavigationTabProp<import("react-navigation").NavigationRoute<import("react-navigation").NavigationParams>, any>>) => import("react-navigation").NavigationNavigator<any, import("react-navigation").NavigationProp<import("react-navigation").NavigationState>>;
30export default _default;