Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 491 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 491 Bytes

capacitor-navigationbar

Programmatically change the navigation bar color on android devices.

install

npm i capacitor-navigationbar

MainActivity.java:

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

import

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

use

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