capacitor-navigationbarnx
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

New Document

capacitor-navigationbar

Programmatically change the navigation bar color on android devices. This is a fork of nikosdouvlis/capacitor-navigationbar and adds the following support:

  • Migrated to AndroidX
  • Automatically detect color brightness and use dark UI buttons on bright colors
  • Changing the UI button colors is only available on Android O+. Older devices will blend the light color slightly so UI elements will still be visible

install

npm install capacitor-navigationbarnx

MainActivity.java:

import com.nikosdouvlis.navigationbar.NavigationBar;
...
...
add(NavigationBar.class);

import

import { NavigationBarPlugin } from 'capacitor-navigationbarnx';
...
...
const NavigationBar = Plugins.NavigationBar as NavigationBarPlugin;

use

NavigationBar.setBackgroundColor({color: '#FF1F1F1F'});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.61latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.61
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.20

Package Sidebar

Install

npm i capacitor-navigationbarnx

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

242 kB

Total Files

137

Last publish

Collaborators

  • manuelsc