UNPKG

1.01 kBTypeScriptView Raw
1import { ParamListBase, TabNavigationState } from '@react-navigation/native';
2import { Animated, StyleProp, ViewStyle } from 'react-native';
3import { EdgeInsets } from 'react-native-safe-area-context';
4import type { BottomTabBarProps, BottomTabDescriptorMap } from '../types';
5type Props = BottomTabBarProps & {
6 style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
7};
8type Options = {
9 state: TabNavigationState<ParamListBase>;
10 descriptors: BottomTabDescriptorMap;
11 layout: {
12 height: number;
13 width: number;
14 };
15 dimensions: {
16 height: number;
17 width: number;
18 };
19};
20export declare const getTabBarHeight: ({ state, descriptors, dimensions, insets, style, ...rest }: Options & {
21 insets: EdgeInsets;
22 style: Animated.WithAnimatedValue<StyleProp<ViewStyle>> | undefined;
23}) => number;
24export default function BottomTabBar({ state, navigation, descriptors, insets, style, }: Props): JSX.Element;
25export {};
26//# sourceMappingURL=BottomTabBar.d.ts.map
\No newline at end of file