Added selectedItemColor and unSelectedItemColor to the TabStrip (#8431)

* chore: add guard for ios

* feat(bottom-nav): adding new properties

* feat(tabs): new property implementation

* feat: new feature implementation in android

Implemented selectedItemColor and unSelectedItemColor properties on TabStrip

* chore: added some comments

* chore: change method return type

* fix: setting icon color

* fix: rendering mode setting

* chore: rename variable

* chore: fixed a typo

* chore: updated log in build gradle

* fix: item color setting in android

* fix: tab styling when no css aplied

* chore: private methods renamed

* tests: added selected-item test pages

* chore: renamed test pages

* chore: move css-tree package to the right place

* tests: added new ui tests

* fix: use renamed function

* fix: set item color

* tests: aded automationText attribute

* tests: trying to fix the tests

Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
This commit is contained in:
Vasil Trifonov
2020-03-16 12:54:30 +02:00
committed by GitHub
parent e081340665
commit 243dc98005
22 changed files with 675 additions and 196 deletions

View File

@@ -2225,8 +2225,12 @@ export class TabNavigationBase extends View {
getTabBarItemTextTransform(tabStripItem: TabStripItem): any
getTabBarSelectedItemColor(): Color
getTabBarTextTransform(): any
getTabBarUnSelectedItemColor(): Color
ios: any /* UITabBarController */;
items: Array<TabContentItem>;
@@ -2266,8 +2270,12 @@ export class TabNavigationBase extends View {
setTabBarItemTitle(tabStripItem: TabStripItem, value: any): any
setTabBarSelectedItemColor(value: Color)
setTabBarTextTransform(value: any): void
setTabBarUnSelectedItemColor(value: Color)
tabStrip: TabStrip;
}
@@ -2320,6 +2328,10 @@ export class TabStrip extends View {
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
on(event: "itemTap", callback: (args: TabStripItemEventData) => void, thisArg?: any);
selectedItemColor: Color;
unSelectedItemColor: Color;
}
// @public