UNPKG

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