Skip to main content
Use this API to hide the tab bar, optionally with an animation effect.

Parameters

Code Example

Basic Usage

With Animation

With Callbacks

Use Cases

Hide the tab bar when displaying fullscreen content like videos or images.
Hide tab bar based on user role or state.

my.setTabBarStyle

Customize tab bar style

my.switchTab

Navigate to a tab page