Implement native top-bar tab navigation, secondary category headers, and swipeable tab viewports.
Implement native top-bar tab navigation and secondary category headers. Nativine embeds native iOS UISegmentedControl and Android TabLayout viewports, allowing users to switch sub-categories with native swipe gestures and zero web reloads.
Top tab bars provide clean secondary navigation for e-commerce, news, and dashboard applications. Nativine's Secondary Navigation plugin renders native tab bars below the header action bar:
To switch top tabs or update active tab badges programmatically in JavaScript, call nativine.secondaryNav.setActiveTab():
// Programmatically switch active top tab
nativine.secondaryNav.setActiveTab({
index: 1 // 0-indexed tab position
});
// Update badge count
nativine.secondaryNav.setTabBadge({
index: 2,
badgeText: '5'
});
| Parameter | Type | Description |
|---|---|---|
index | integer | Required. 0-indexed tab position (e.g. 0, 1, 2). |
badgeText | string | Required. Badge text string or count. |
Yes. Toggle "Auto-hide on Scroll Down" in the builder to maximize webview reading area while scrolling.
Yes. Both bars operate independently in native layout containers.