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
I am creating a separate issue based my comments here: #1269
The original question was answered.
@vakrilov , @maknz
From what I can see in tab-view.ios.js under tns_core_modules, line 218 is reason why tab-view icons look different in the latest release.
The icon image rendering mode is set to AlwaysOriginal. This means the icons will keep their original rendering, this is not default iOS behaviour, I think...
If I override this to AlwaysTemplate or Automatic, it will use the iOS color-templating on the tabBar icons. And you can define both text and icon color with the selectedColor property.
Most of the time it is easier to use AlwaysTemplate since iOS takes care of the normal and selected color for each button, and you can use one icon for both states.
But if we use AlwaysOriginal then we must provide both normal and selected icon-images, since they are not colored by iOS anymore. So we need to provide to version of each icon (one for each state). And from the looks of it, TabView in nativescript does not provide properites to add icons for both states.
This should have been fixed/improved for 1.7.0. Very annoying issue where we have to manually change tab-view.ios.js every time there is a release/update to the core-modules.
Please change the image render mode to Automatic and give us the ability to set color to both selected and non-selected buttons. And/Or the possibility to set normal and selected icons.
Activity
stevetayloruk commentedon Jan 9, 2016
+1
manijak commentedon Mar 16, 2016
This should have been fixed/improved for 1.7.0. Very annoying issue where we have to manually change
tab-view.ios.jsevery time there is a release/update to the core-modules.Please change the image render mode to Automatic and give us the ability to set color to both selected and non-selected buttons. And/Or the possibility to set normal and selected icons.
hamorphis commentedon Jul 13, 2016
@manijak It's fixed. For simple stuff like this you can always change one two lines of code and then open a pull request.
toddanglin commentedon Jul 13, 2016
@manijak Thanks again for raising this issue and providing the suggested solution! Everyone will now benefit in the 2.2 release.
leocaseiro commentedon Aug 12, 2016
Perhaps, would be nice if we had the option to choose between
UIImageRenderingModeAlwaysOriginalandUIImageRenderingModeAutomatic.lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.