npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ethion/capacitor-navigation-bar

v8.0.2

Published

Capacitor Plugin for Navigation Bar

Readme

Version

| Platform | Version | Remarks | | ----------- | ------------------------------------------- | --------------------------------------------------------------- | | Capacitor | V6+ | Supports Capacitor 6.0.0 and higher |

Compatibility Matrix

| Platform | Minimum | Recommended | |----------|---------|-------------| | Android | minSdk 24 | compile/target SDK 36 | | iOS | iOS 15.0 | Xcode 26+, Swift 5.9 |

Notes:

  • Plugin built with Capacitor 8.0.x and Android Gradle Plugin 8.13.0 / Gradle 8.14.3.
  • Requires Node.js 22+ and npm 10+.

Maintainers

| Maintainer | GitHub | Website | | ----------- | ------------------------------------------- | --------------------------------------------------------------- | | Ethion | ethion-cloud | Ethion |

Install

npm install @ethion/capacitor-navigation-bar
npx cap sync

Configuration

No special configuration required. Ensure your project meets these platform baselines:

  • Android

    • compileSdk/targetSdk: 36

    • minSdk: 24+

    • Java toolchain: JDK 21+ (Capacitor Android 8 requires JDK 21)

    • Gradle 8.14.3+ / AGP 8.13.0+

    • If using Angular/Ionic, define a Browserslist that includes ChromeAndroid < 91 to avoid modern JS syntax issues on older WebView. Example:

      # browserslist
      ChromeAndroid >= 79
      Chrome >= 79
      not dead
  • iOS

    • Xcode 26+
    • iOS deployment target 15.0+
    • Swift 5.9+
    • Supports both Swift Package Manager (SPM) and CocoaPods

API

show()

show() => Promise<void>

Display the navigation bar.


hide()

hide() => Promise<void>

Hide the navigation bar.


setColor(...)

setColor(options: ColorParameters) => Promise<void>

Change the color of the navigation bar. *Support alpha hexadecimal numbers.

| Param | Type | | ------------- | ----------------------------------------------------------- | | options | ColorParameters |


setTransparency(...)

setTransparency(options: { isTransparent: boolean; }) => Promise<void>

Set the Transparency

| Param | Type | | ------------- | ---------------------------------------- | | options | { isTransparent: boolean; } |


getColor()

getColor() => Promise<{ color: string; }>

Gets the current color of the navigation bar in Hexadecimal.

Returns: Promise<{ color: string; }>


addListener(NavigationBarPluginEvents.SHOW, ...)

addListener(event: NavigationBarPluginEvents.SHOW, listenerFunc: () => void) => Promise<PluginListenerHandle>

Event fired after navigation bar is displayed

| Param | Type | Description | | ------------------ | ------------------------------------------------------------------------------------ | ----------- | | event | NavigationBarPluginEvents.SHOW | The event | | listenerFunc | () => void | Callback |

Returns: Promise<PluginListenerHandle>


addListener(NavigationBarPluginEvents.HIDE, ...)

addListener(event: NavigationBarPluginEvents.HIDE, listenerFunc: () => void) => Promise<PluginListenerHandle>

Event fired after navigation bar is hidden

| Param | Type | Description | | ------------------ | ------------------------------------------------------------------------------------ | ----------- | | event | NavigationBarPluginEvents.HIDE | The event | | listenerFunc | () => void | Callback |

Returns: Promise<PluginListenerHandle>


addListener(NavigationBarPluginEvents.COLOR_CHANGE, ...)

addListener(event: NavigationBarPluginEvents.COLOR_CHANGE, listenerFunc: (returnObject: { color: string; }) => void) => Promise<PluginListenerHandle>

Event fired after navigation bar color is changed

| Param | Type | Description | | ------------------ | -------------------------------------------------------------------------------------------- | ----------- | | event | NavigationBarPluginEvents.COLOR_CHANGE | The event | | listenerFunc | (returnObject: { color: string; }) => void | Callback |

Returns: Promise<PluginListenerHandle>


Interfaces

ColorParameters

| Prop | Type | Description | | ----------------- | -------------------- | ------------------------------------------------------------------------- | | color | string | Sets the new color of the navigation bar. | | darkButtons | boolean | Sets whether the default navigation bar buttons should be black or white. |

PluginListenerHandle

| Prop | Type | | ------------ | ----------------------------------------- | | remove | () => Promise<void> |

Enums

NavigationBarPluginEvents

| Members | Value | Description | | ------------------ | ---------------------------- | -------------------------------------------- | | SHOW | 'onShow' | Called after the navigation bar is displayed | | HIDE | 'onHide' | Called after navigation bar is hidden | | COLOR_CHANGE | 'onColorChange' | Called after navigation bar color is changed |

Usage Example

import { NavigationBar, NavigationBarPluginEvents } from '@ethion/capacitor-navigation-bar';

// Show the navigation bar
await NavigationBar.show();

// Hide the navigation bar
await NavigationBar.hide();

// Set navigation bar color
await NavigationBar.setColor({ color: '#FF0000', darkButtons: true });

// Set transparency
await NavigationBar.setTransparency({ isTransparent: true });

// Listen for events
NavigationBar.addListener(NavigationBarPluginEvents.SHOW, () => {
  console.log('Navigation bar is shown');
});

Compatibility

| Capacitor Version | Plugin Version | Install Command | |-------------------|----------------|-----------------| | 8.x | 8.x | npm i @ethion/capacitor-navigation-bar@8 | | 7.x | 7.x | npm i @ethion/capacitor-navigation-bar@7 | | 6.x | 6.x | npm i @ethion/capacitor-navigation-bar@6 | | 5.x | 5.x | npm i @ethion/capacitor-navigation-bar@5 |

Using with Older Capacitor Versions

If you're using Capacitor 5, 6, or 7, install the matching plugin version:

# For Capacitor 7
npm install @ethion/capacitor-navigation-bar@7
npx cap sync

# For Capacitor 6
npm install @ethion/capacitor-navigation-bar@6
npx cap sync

# For Capacitor 5
npm install @ethion/capacitor-navigation-bar@5
npx cap sync

Each major plugin version is aligned with the corresponding Capacitor major version and includes platform-specific requirements for that version.

Migrating to v8

If upgrading from v7 or earlier:

  1. Update your project to Capacitor 8 first (migration guide)
  2. Update your dependencies:
    npm install @ethion/capacitor-navigation-bar@8
    npx cap sync
  3. Ensure your project meets the minimum requirements:
    • Android: minSdk 24, targetSdk 36, Java 21, Gradle 8.14.3+
    • iOS: iOS 15.0+, Xcode 26+, Swift 5.9+
    • Node.js: 22+

Demo project

This repo includes a minimal Ionic Angular demo in demoProject/ pre-wired to the local plugin for development:

  • Ensure you’ve built the plugin once at the repo root: npm run build
  • Install demo deps and link local plugin:
    • cd demoProject
    • npm install
    • npx cap sync
  • Android: open demoProject/android in Android Studio, or run Gradle build
  • iOS: cd demoProject/ios && pod install then open App.xcworkspace in Xcode (or use SPM)

Notes:

  • Demo targets Capacitor 8 and Android SDK 36 / iOS 15+.
  • Supports both Swift Package Manager (SPM) and CocoaPods for iOS.

Related Plugins

For status bar control, see the official Capacitor plugin: @capacitor/status-bar

For edge-to-edge and system bars control in Capacitor 8, see: @capacitor/system-bars