Gets/sets child controllers of BottomTabbarController instance.
3.2.0
Readonly
tabGets/sets tab bar view of BottomTabbarController instance.
3.2.0
Gets/sets the selected tab bar item.
selectedIndex
3.2.0
Optional
transitionOptional
popOptional
headerReturn true if you want the item to be displayed as the selected index.
shouldSelectByIndex
Boolean
3.2.0
import BottomTabbarController from '@smartface/native/ui/bottomtabbarcontroller';
const bottomTabbarController = new BottomTabbarController();
bottomTabbarController.shouldSelectByIndex = ({ index }) => {
console.info('shouldSelectByIndex', index);
return true;
}
Called when an item in the bottom tabbar item is selected.
didSelectByIndex
3.2.0
import BottomTabBarController from "./bottomtabbarcontroller";
const bottomTabBarController = new BottomTabBarController();
bottomTabbarController.didSelectByIndex = ({ index }) => {
console.info('didSelectByIndex', index);
}
Optional
params: { controller: IController<any>; animated: any; isComingFromPresent?: boolean; onCompleteCallback?: (() => void) }Optional
isOptional
onGenerated using TypeDoc
Since
3.2
BottomTabbarController is used for navigating between tab bar items with given tags.
Example
See
BottomTabBarRouter