setStyle to style the according TabBar#2224
Conversation
update fork
| } | ||
|
|
||
| private boolean hasBadgeTextColor(StyleParams params) { | ||
| return params.bottomTabBadgeTextColor != null && |
There was a problem hiding this comment.
We can avoid adding these convince method by initializing these style properties so they are never null here. The Color class is meant to be used as a null object
There was a problem hiding this comment.
Of cause. This was original coding, so I've adapted it to match this code style.
Which color will be the default one?
There was a problem hiding this comment.
No need to specify a default color since in this case hasColor() will return false as expected.
There was a problem hiding this comment.
so you will only check hasColor() in the setStyle function and remove the has...functions?
|
any reaction? 😄 |
|
@danielang Hey sorry about the delay. If I don't respond you can always try pinging me on discord. 👍 |
…igationViewController tabButtonColor improvement
* master: Revert "setStyle to style the according TabBar (wix#2224)" (wix#2276) setStyle to style the according TabBar (wix#2224) Fix dismissAllModal API - the root won't unregister when invoke dismissAllModals (wix#2255) Expose keyUp event from modals to ActivityCallback [iOS] Add support for bar button system items (wix#2133)
setTabButton -> has now the property 'label' to change the label of the TabButton iOS update style-update rutine to update each viewcontroller in a NavigationViewController tabButtonColor improvement
setTabButton -> has now the property 'label' to change the label of the TabButton iOS update style-update rutine to update each viewcontroller in a NavigationViewController tabButtonColor improvement
|
Is this working on latest release? |
Use
navigator.setStyle({...}to set the style of TabBar of the according screen at runtime for iOS and Android.Good for theming purpose.
Exampe: