hello , i am try to create two function
to hide and show navbar in android ,
the problem is the HidenavBar function is work fine , and when called it , the navbar is hidden
but in same time when i call ShownavBar funcation , the navbar not get back to show,
so i must close app then reopen it to show navbar
import { NavigationBar } from '@ionic-native/navigation-bar/ngx';
ShownavBar(){
if(this.platform.is('android'))
{
let autoHide: boolean = false;
this.navigationBar.setUp(autoHide);
}
}
HidenavBar(){
if(this.platform.is('android'))
{
let autoHide: boolean = true;
this.navigationBar.setUp(autoHide);
}
}
2 posts - 2 participants