Skip to content

[BottomNav][iOS] Changing tabs programatically messes up styles #7667

@PeterStaev

Description

@PeterStaev

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.0.0
  • Cross-platform modules: 6.0.0
  • Android Runtime: 6.0.0
  • iOS Runtime: 6.0.0
  • Plugin(s):

Describe the bug
When you change the selectedIndex programatically the tab actually changes but the styles are not applied, so visually the old tab remains selected and the new one looks like unselected. Works as expected on android.

To Reproduce
https://play.nativescript.org/?template=play-tsc&id=ill2KK
tap on button in the action bar

Expected behavior
Styles to be applied correctly.

Sample project

Additional context

Related to #6967

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions