|
1 | 1 | // Types |
| 2 | +import { TabStrip } from "../tab-navigation-base/tab-strip"; |
2 | 3 | import { TabContentItem } from "../tab-navigation-base/tab-content-item"; |
3 | 4 | import { TabStripItem } from "../tab-navigation-base/tab-strip-item"; |
4 | 5 | import { TextTransform } from "../text-base"; |
5 | 6 |
|
6 | 7 | //Requires |
7 | | -import { TabNavigationBase, itemsProperty, selectedIndexProperty } from "../tab-navigation-base/tab-navigation-base"; |
| 8 | +import { TabNavigationBase, itemsProperty, selectedIndexProperty, tabStripProperty } from "../tab-navigation-base/tab-navigation-base"; |
8 | 9 | import { Font } from "../styling/font"; |
9 | 10 | import { getTransformedText } from "../text-base"; |
10 | 11 | import { Frame } from "../frame"; |
@@ -137,7 +138,7 @@ class UITabBarControllerDelegateImpl extends NSObject implements UITabBarControl |
137 | 138 | if (tabStripItems[position]) { |
138 | 139 | tabStripItems[position]._emit(TabStripItem.selectEvent); |
139 | 140 | } |
140 | | - |
| 141 | + |
141 | 142 | if (tabStripItems[prevPosition]) { |
142 | 143 | tabStripItems[prevPosition]._emit(TabStripItem.unselectEvent); |
143 | 144 | } |
@@ -610,6 +611,15 @@ export class BottomNavigation extends TabNavigationBase { |
610 | 611 | this.setViewControllers(value); |
611 | 612 | selectedIndexProperty.coerce(this); |
612 | 613 | } |
| 614 | + |
| 615 | + [tabStripProperty.getDefault](): TabStrip { |
| 616 | + return null; |
| 617 | + } |
| 618 | + |
| 619 | + [tabStripProperty.setNative](value: TabStrip) { |
| 620 | + this.setViewControllers(this.items); |
| 621 | + selectedIndexProperty.coerce(this); |
| 622 | + } |
613 | 623 | } |
614 | 624 |
|
615 | 625 | interface TabStates { |
|
0 commit comments