import type { TabView } from "@nativescript/core"; import type { ParamListBase, Descriptor, NavigationHelpers, NavigationProp, TabNavigationState, TabActionHelpers, RouteProp } from "@react-navigation/core"; import type { NativeScriptProps, TabViewAttributes } from "react-nativescript"; /** * @see https://github.com/react-navigation/react-navigation/blob/f51086edea42f2382dac8c6914aac8574132114b/packages/material-top-tabView/src/types.tsx */ export declare type TabViewNavigationEventMap = { tabPress: { data: undefined; canPreventDefault: true; }; }; export declare type TabViewNavigationHelpers = NavigationHelpers & TabActionHelpers; export declare type TabViewNavigationProp = NavigationProp, TabViewNavigationOptions, TabViewNavigationEventMap> & TabActionHelpers; export declare type TabViewScreenProps = { navigation: TabViewNavigationProp; route: RouteProp; }; /** * Supported screen options, which determine the behaviour of each TabStripItem and its corresponding TabContentItem. * Set these to common values via the TabsNavigator.Navigator `screenOptions` prop; * ... or to screen-specific values via each TabsNavigator.Screen `options` prop. * * @example * @example */ export declare type TabViewNavigationOptions = { title?: string; /** * The source of the image to use for the tab's icon. * @example "res://home_icon" (where the icon file is called "home_icon.png") * @see https://docs.nativescript.org/ui/image-resources */ iconSource?: string; }; export declare type TabViewDescriptor = Descriptor, TabViewNavigationOptions>; export declare type TabViewDescriptorMap = { [key: string]: TabViewDescriptor; }; /** * The navigation config, which determines the behaviour of the Tabs and TabStrip components. * Set these by passing the props directly to TabNavigator.Navigator * * @example */ export declare type TabViewNavigationConfig = Partial, "selectedIndex" | "onSelectedIndexChanged">> & { /** * Doesn't do anything; is just included to demonstrate how to configure the Navigator. */ exampleOption?: string; };