import { FC, JSX, ReactNode } from 'react'; import { Animated } from 'react-native'; import { NavigateOptions } from '@resourge/history-store/mobile'; import { NavigateMethod } from '../../../hooks/useNavigate/useNavigateType'; export type CommonTabProps = { /** * Show animation when switching Screens * @default true * @platform mobile */ animated?: boolean; /** * Animation duration * @default 350 * @platform mobile */ duration?: number; onPress?: (action: { navigate: NavigateMethod; path: string; }, defaultAction: TabDefaultAction) => void; renderLabel?: (props: { animation: Animated.Value; icon: ((props: { animation: Animated.Value; }) => JSX.Element) | ReactNode; isFocused?: boolean; label: string; path: string; }) => ReactNode; renderTabBarItem?: (props: { children: ReactNode; onPress: () => void; }) => ReactNode; }; export type TabBarItemContainerProps = CommonTabProps & { icon: ((props: { animation: Animated.Value; }) => JSX.Element) | ReactNode; label: string; path: string; }; /** * @default path will default to TabRoute path */ export type TabDefaultAction = (path?: string) => void; declare const TabBarItemContainer: FC; export default TabBarItemContainer;