UNPKG

@nativescript-community/ui-material-bottomnavigationbar

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.

28 lines (27 loc) 1.43 kB
import { BottomNavigationBarBase, BottomNavigationTabBase } from './bottomnavigationbar-common'; declare type OnNavigationItemSelectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener; declare type OnNavigationItemReselectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener; export declare class BottomNavigationBar extends BottomNavigationBarBase { nativeViewProtected: com.google.android.material.bottomnavigation.BottomNavigationView; _items: BottomNavigationTab[]; reselectListener: OnNavigationItemReselectedListener; selectListener: OnNavigationItemSelectedListener; height: number; createNativeView(): com.google.android.material.bottomnavigation.BottomNavigationView; initNativeView(): void; disposeNativeView(): void; showBadge(index: number, value?: number): void; removeBadge(index: number): void; protected createTabs(tabs: BottomNavigationTab[] | undefined): void; protected selectTabNative(index: number): void; } export declare class BottomNavigationTab extends BottomNavigationTabBase { nativeViewProtected: android.view.MenuItem; index: number; _isPaddingRelative: boolean; createNativeView(): globalAndroid.view.MenuItem; initNativeView(): void; showBadge(value?: any): void; removeBadge(): void; } export {};