Skip to content

[BottomNav] Changing tabs crashes app #7608

Closed

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
  • Cross-platform modules: 6.0.2
  • Android Runtime: 6.0.0
  • iOS Runtime: 6.0.0
  • Plugin(s):

Describe the bug
Have one tab structure defined in XML. On click I want to change the tabs to something else. Doing so cause the app to crash.

To Reproduce
https://play.nativescript.org/?template=play-tsc&id=qn90jL&v=2
Tap on the Change button

Expected behavior
To work 😀

Related to #6967

Activity

  1. PeterStaev commented on Jul 30, 2019

    @PeterStaev
    ContributorAuthor

    Workaround: clear the items of both the bottom nav and the tabstrip before setting the new ones:

        bottomNav.items = [];
        bottomNav.tabStrip.items = [];
  2. rigor789 commented on Sep 7, 2023

    @rigor789
    Member

    Closing because BottomNavigation and Tabs are no longer part of core since NativeScript 8.0:

    https://blog.nativescript.org/nativescript-8-announcement/#important-note-about-bottomnavigation-and-tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions