UNPKG

@nativescript-community/ui-material-bottom-navigation

Version:

Material Design Bottom Navigation bars allow movement between primary destinations in an app. Tapping on a bottom navigation icon takes you directly to the associated view or refreshes the currently active view.

27 lines (26 loc) 977 B
import { NativeScriptProps } from 'react-nativescript'; import { BottomNavigation, SelectedIndexChangedEventData, TabContentItem, TabStrip } from '../'; import { TabNavigationBaseAttributes } from '@nativescript-community/ui-material-core-tabs/react'; export type BottomNavigationAttributes = TabNavigationBaseAttributes & { android?: any; ios?: any; items?: TabContentItem[]; onSelectedIndexChanged?: (args: SelectedIndexChangedEventData) => void; selectedIndex?: number; tabStrip?: TabStrip; }; declare global { namespace JSX { interface IntrinsicElements { bottomNavigation: NativeScriptProps<BottomNavigationAttributes, BottomNavigation>; } interface ElementChildrenAttribute { children: {}; } } } interface RegisterBottomNavigationOptions { enableDebugLogging?: boolean; } export declare function registerBottomNavigation(opts?: RegisterBottomNavigationOptions): void; export {};