You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide an API for using system default TabBar items.
For iOS use system provided styles (e.g. UITabBarSystemItem and UIImageRenderingModeAlwaysOriginal).
For Android provide same icons in the default project template.
Also in documentation provide information about expected Image size (for icon in tabBar).
Is this issue stil Open? It is possible to use native properties to style the TabView Bar but it is very limited. iOS limitation I guess? Is there anything we can do to smooth this out?
Having a hard time to style the not-selected tabView buttons (icon & text). My TabBar is blue, selected tintColor is White. But the non-selected ones are grey, and barely visible. No way to change them it seems.
@jadsonlourenco were you able to get the tutorial link to work on iOS? Having a hard time changing the status bar colour on iOS. Can you post up a gist if you having a working demo?
@rjayako sorry but I don't use NativeScript anymore - and don't solve this issue. I use React Native, the community is more active and help new devs, like me. Good luck!
@manijak@jadsonlourenco
Being able to set the selected and non-selected colors of the tab-bar-items is something we are currently working on and will probably get into the next release. Actually, we already have it in the master branch here.
I was able to style everything using native code except for the normal state image color, which I can't for the life of me figure out because I see that the underlying code is using the render original mode for the image, which is supposed to do the trick, but it is still gray 😠
The way its now, no. But if the TabView included "TabViews" and "TabButtons" elements, then perhaps we could :-)
And btw, RenderMode Original means that custom colors don't apply. Images are used "as is", and their original color is shown. So you need two sets of images, one for each state.
I did notice per #767 that you can totally change the color of the text and items, but you have to do it as a property. It would be much easier to create re-usable themes if it was possible to change those items via class.
I suppose we would have to provide a psuedo-class for the selectedColor. Perhaps :active?
TabView items now accept sys:// (SF Symbols on iOS) and font:// icon sources (#10783), e.g. iconSource="sys://house.fill", which covers using system-provided tab icons. Closing — please open a new issue if something specific is still missing.
Activity
manijak commentedon Oct 11, 2015
Is this issue stil Open? It is possible to use native properties to style the TabView Bar but it is very limited. iOS limitation I guess? Is there anything we can do to smooth this out?
Having a hard time to style the not-selected tabView buttons (icon & text). My TabBar is blue, selected tintColor is White. But the non-selected ones are grey, and barely visible. No way to change them it seems.
rjayako commentedon Oct 21, 2015
@jadsonlourenco were you able to get the tutorial link to work on iOS? Having a hard time changing the status bar colour on iOS. Can you post up a gist if you having a working demo?
jadsonlourenco commentedon Oct 21, 2015
@rjayako sorry but I don't use NativeScript anymore - and don't solve this issue. I use React Native, the community is more active and help new devs, like me. Good luck!
vakrilov commentedon Oct 22, 2015
@manijak @jadsonlourenco
Being able to set the selected and non-selected colors of the tab-bar-items is something we are currently working on and will probably get into the next release. Actually, we already have it in the master branch here.
rclai commentedon Nov 24, 2015
What about the top border color on iOS?
rclai commentedon Nov 24, 2015
I was able to style everything using native code except for the normal state image color, which I can't for the life of me figure out because I see that the underlying code is using the render original mode for the image, which is supposed to do the trick, but it is still gray 😠
rclai commentedon Nov 24, 2015
@hshristov Here's the problem
renderingModeonUIImageis a read-only property: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/#//apple_ref/occ/instp/UIImage/renderingModeYou guys are trying to set it here, but it doesn't work:
NativeScript/ui/tab-view/tab-view.ios.ts
Line 246 in 79f009f
burkeholland commentedon Feb 15, 2016
Is there a way to do this with CSS instead of setting the
tabsBackgroundColordirectly on the element?manijak commentedon Feb 15, 2016
The way its now, no. But if the TabView included "TabViews" and "TabButtons" elements, then perhaps we could :-)
And btw, RenderMode Original means that custom colors don't apply. Images are used "as is", and their original color is shown. So you need two sets of images, one for each state.
burkeholland commentedon Feb 15, 2016
I did notice per #767 that you can totally change the color of the text and items, but you have to do it as a property. It would be much easier to create re-usable themes if it was possible to change those items via class.
I suppose we would have to provide a psuedo-class for the
selectedColor. Perhaps:active?hamorphis commentedon Nov 8, 2016
@hshristov Include this in the 2.5 planning.
[-]Expose TabView system styles[/-][+]TabView system icons[/+]dlucidone commentedon Apr 20, 2017
any progress on this?
berardo commentedon Aug 11, 2017
Still open? :(
alfrednerstu commentedon Nov 28, 2018
Would also love to see support for the native iOS icons as showed here: https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/#tab-bar-icons
NathanWalker commentedon Oct 23, 2026
TabView items now accept
sys://(SF Symbols on iOS) andfont://icon sources (#10783), e.g.iconSource="sys://house.fill", which covers using system-provided tab icons. Closing — please open a new issue if something specific is still missing.