
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@squareetlabs/capacitor-navigation-bar
Advanced tools
This Capacitor Plugin allows control of the navigation bar on Android devices.
This is a capacitor plugin to control the navigation bar on Android devices.
npm install @squareetlbas/capacitor-navigation-bar
ionic cap sync
This plugin is for Capacitor and allows control of the navigation bar on Android devices.
The Capacitor NavigationBar plugin is designed to provide an easy way to control the navigation bar on Android devices, allowing you to hide, show, change its color, and make it transparent.
For a more in-depth look into the different parameters for methods, along with the corresponding types. Please look into a breakdown of the API:
hide()
Hides the navigation bar.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.hide();
show()
Shows the navigation bar.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.show();
setTransparency(options: { isTransparent: boolean })
Sets the transparency of the navigation bar.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.setTransparency({ isTransparent: true });
setColor(options: { color: string, darkButtons: boolean })
Sets the color of the navigation bar and the style of the buttons (light or dark).
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.setColor({ color: '#FF0000', darkButtons: true });
getColor()
Gets the current color of the navigation bar.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
const color = await NavigationBar.getColor();
console.log(color); // { color: '#FF0000' }
addListener(event: 'onShow', listenerFunc: () => void)
Event fired after the navigation bar is displayed.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.addListener('onShow', () => {
console.log('Navigation bar is shown');
});
addListener(event: 'onHide', listenerFunc: () => void)
Event fired after the navigation bar is hidden.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.addListener('onHide', () => {
console.log('Navigation bar is hidden');
});
addListener(event: 'onColorChange', listenerFunc: (returnObject: { color: string }) => void)
Event fired after the navigation bar color is changed.
import { Plugins } from '@capacitor/core';
const { NavigationBar } = Plugins;
NavigationBar.addListener('onColorChange', (info) => {
console.log('Navigation bar color changed to', info.color);
});
The Capacitor NavigationBar plugin provides an efficient and easy way to control the navigation bar on Android devices. With methods to hide, show, change the color, and adjust the transparency, it offers great flexibility and control over your app's user interface.
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.