Parameters
Pages opened with
my.navigateTo or my.redirectTo do not show the bottom tab bar, even if they are defined in the tabBar configuration. The first page of the tabBar must be the home page.tabBar Configuration
Tab pages are defined in thetabBar field of app.json:
Each item in
items:
The recommended icon size is 60×60 px; other sizes are stretched non-uniformly.
Code Example
Basic Usage
With Callbacks
Configuration
The target page must be defined inapp.json:
Important Notes
Differences from Other Navigation APIs
Related APIs
my.navigateTo
Navigate to a new page
my.setTabBarStyle
Customize tab bar style