Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49230

Hide and show navbar in android

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 49230

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>