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
{{ message }}
Repository navigation
[BottomNavigation] Icons in tab-strips items cannot be changed dynamically #7470
changed the title [-]BottomNavigation icons in tabStrips cannot be changed dynamically[/-][+]BottomNavigation icons in tab-strips items cannot be changed dynamically[/+]on Jul 5, 2019
changed the title [-]BottomNavigation icons in tab-strips items cannot be changed dynamically[/-][+][BottomNavigation] Icons in tab-strips items cannot be changed dynamically[/+]on Jul 8, 2019
Tested your playground on an Android 7.0 LG K20 PLUS (I know I need to upgrade) and it works as expected. The active icon is black.
Unfortunately,
iPhone XR (and other iOS devices) the playground has a blue icon instead of the black. Can you confirm this is what you're seeing and whether or not that's an issue?
@lhovee Yes, this is the expected default behavior with 6.1 on iOS when you use resource images. There are specific iOS guidelines for these as far as I know. The iosIconRenderingMode property disables this behavior. The property was missed/forgotten in 6.0 See also #6967
Activity
[-]BottomNavigation icons in tabStrips cannot be changed dynamically[/-][+]BottomNavigation icons in tab-strips items cannot be changed dynamically[/+][-]BottomNavigation icons in tab-strips items cannot be changed dynamically[/-][+][BottomNavigation] Icons in tab-strips items cannot be changed dynamically[/+]lhovee commentedon Sep 5, 2019
I have a use case where attempting to swap an active icon when tab strip item is selected that doesn't work. Hoping we can re-open this ticket.
lhovee commentedon Sep 5, 2019
code is:
lhovee commentedon Sep 5, 2019
where PlaceholderComponent.vue looks like
lhovee commentedon Sep 5, 2019
tns-android: 6.0.2
tns-ios: 6.0.2
nativescript-vue: 2.4.0
tns-core-modules: 6.1.0
rigor789 commentedon Sep 9, 2019
@lhovee I just re-created your example in the playground (using js) and seems to be working fine: https://play.nativescript.org/?template=play-vue&id=RPxTCx
I had to change
greytograyas it was erroring aboutgreynot being a valid color.lhovee commentedon Sep 25, 2019
@rigor789 @MartoYankov
Tested your playground on an Android 7.0 LG K20 PLUS (I know I need to upgrade) and it works as expected. The active icon is black.
Unfortunately,
iPhone XR (and other iOS devices) the playground has a blue icon instead of the black. Can you confirm this is what you're seeing and whether or not that's an issue?
lhovee commentedon Sep 25, 2019
UPDATE:
<TabStrip iosIconRenderingMode="alwaysOriginal">This resolves the issue I was seeing on iOS.
MartoYankov commentedon Sep 25, 2019
@lhovee Yes, this is the expected default behavior with 6.1 on iOS when you use resource images. There are specific iOS guidelines for these as far as I know. The
iosIconRenderingModeproperty disables this behavior. The property was missed/forgotten in 6.0 See also #6967lhovee commentedon Sep 25, 2019
Appreciate the help!