Skip to content

[Tracking] Bottom navigation & tabs components #6967

@MartoYankov

Description

@MartoYankov

Overview

The TabView component is a navigation component that is usually at the base of a mobile app. As such it's very important to get it right. Following lots of reported issues and discussions, we decided to do a re-design of how the developer uses and customizes the component. This should be done by introducing several new components including BottomNavigation and Tabs and there should be no breaking changes for existing apps. See the design doc below for the detailed information.

Design

Implementation details and motivation of the feature can be found in its design document.

Tasks

NativeScript 6.0 (components released as BETA / EXPERIMENTAL)

BottomNavigation

  • native implementation [Android]
  • nesting navigations
  • load one view at a time
  • TabStrip declaration
  • Angular support

Tabs

  • native implementation [iOS]
  • nesting navigations
  • pre-load one view to the sides by default
  • TabStrip declaration
  • offscreenTabLimit
  • tabsPosition
  • swipeEnabled
  • Angular support

TabStrip

  • CSS background-color

TabStripItem

  • CSS pseudo class :active
  • CSS background-color
  • CSS color
  • CSS font
  • CSS font-size
  • CSS highlight-color
  • CSS text-transform
  • iconSource font-icon support
  • Image instead of iconSource declaration
  • Label instead of title declaration

Issues:

NativeScript 6.1 (components released as OFFICIAL)

BottomNavigation

  • Vue.js support
  • No TabStrip support (tabBarVisibility/no declaration)
  • limit bar to 5 tabs

Tabs

  • Vue.js support
  • safe area improvements
  • No TabStrip support (tabBarVisibility/no declaration)

TabStrip

TabStripItem

Issues:

Angular

NativeScript 6.2

Issues:

NativeScript vNext

BottomNavigation

Tabs

TabBars

  • BottomNavigationBar
  • TabsBar

Issues:

Contributing

If you want to work on a task from the list, tell us and we will do our best to help you!
If you have another great idea on how to make the tab view even cooler, share it in the comments!

Discussion

Please, don't report problems here. Instead, open a new issue and link it to this one.
Let's use this discussion for suggestions and improvement ideas. We would love to hear from you!


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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